Struct rusteron_media_driver::AeronDeque
source · pub struct AeronDeque { /* private fields */ }
Implementations§
source§impl AeronDeque
impl AeronDeque
pub fn new( data: *mut u8, element_count: usize, element_size: usize, first_element: usize, last_element: usize, ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn data(&self) -> *mut u8
pub fn element_count(&self) -> usize
pub fn element_size(&self) -> usize
pub fn first_element(&self) -> usize
pub fn last_element(&self) -> usize
pub fn init( &self, initial_element_count: usize, element_size: usize, ) -> Result<i32, AeronCError>
pub fn close(&self)
sourcepub fn add_last(&self, value: *mut c_void) -> Result<i32, AeronCError>
pub fn add_last(&self, value: *mut c_void) -> Result<i32, AeronCError>
Add value into the deque as the last element. Will memcpy into the deque from the void pointer provided using the specified element size. May need to allocate in order to increase the size of the dequeue.
Errors: ENOMEM if growing the array fails.
§Parameters
-
deque
to add the value too. -
value
value to be added.
§Return
0 on success, -1 on failure.
pub fn remove_first(&self, value: *mut c_void) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_deque_t
Trait Implementations§
source§impl Clone for AeronDeque
impl Clone for AeronDeque
source§fn clone(&self) -> AeronDeque
fn clone(&self) -> AeronDeque
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AeronDeque
impl Debug for AeronDeque
source§impl Default for AeronDeque
impl Default for AeronDeque
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronDeque
impl Deref for AeronDeque
source§impl From<&AeronDeque> for *mut aeron_deque_t
impl From<&AeronDeque> for *mut aeron_deque_t
source§fn from(value: &AeronDeque) -> Self
fn from(value: &AeronDeque) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_deque_stct> for AeronDeque
impl From<*const aeron_deque_stct> for AeronDeque
source§fn from(value: *const aeron_deque_t) -> Self
fn from(value: *const aeron_deque_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_deque_stct> for AeronDeque
impl From<*mut aeron_deque_stct> for AeronDeque
source§fn from(value: *mut aeron_deque_t) -> Self
fn from(value: *mut aeron_deque_t) -> Self
Converts to this type from the input type.
source§impl From<AeronDeque> for *mut aeron_deque_t
impl From<AeronDeque> for *mut aeron_deque_t
source§fn from(value: AeronDeque) -> Self
fn from(value: AeronDeque) -> Self
Converts to this type from the input type.
source§impl From<AeronDeque> for aeron_deque_t
impl From<AeronDeque> for aeron_deque_t
source§fn from(value: AeronDeque) -> Self
fn from(value: AeronDeque) -> Self
Converts to this type from the input type.
source§impl From<aeron_deque_stct> for AeronDeque
impl From<aeron_deque_stct> for AeronDeque
source§fn from(value: aeron_deque_t) -> Self
fn from(value: aeron_deque_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronDeque
impl !RefUnwindSafe for AeronDeque
impl !Send for AeronDeque
impl !Sync for AeronDeque
impl Unpin for AeronDeque
impl !UnwindSafe for AeronDeque
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)