pub struct AeronMpscConcurrentArrayQueue { /* private fields */ }
Implementations§
Source§impl AeronMpscConcurrentArrayQueue
impl AeronMpscConcurrentArrayQueue
pub fn new( padding: [i8; 56], producer: aeron_mpsc_concurrent_array_queue_stct__bindgen_ty_1, consumer: aeron_mpsc_concurrent_array_queue_stct__bindgen_ty_2, capacity: usize, mask: usize, buffer: *mut *mut c_void, ) -> Result<Self, AeronCError>
Sourcepub fn new_zeroed() -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
creates zeroed struct where the underlying c struct is on the heap
pub fn padding(&self) -> [i8; 56]
pub fn producer(&self) -> aeron_mpsc_concurrent_array_queue_stct__bindgen_ty_1
pub fn consumer(&self) -> aeron_mpsc_concurrent_array_queue_stct__bindgen_ty_2
pub fn capacity(&self) -> usize
pub fn mask(&self) -> usize
pub fn buffer(&self) -> *mut *mut c_void
pub fn init(&self, length: usize) -> Result<i32, AeronCError>
pub fn close(&self) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_mpsc_concurrent_array_queue_t
Source§impl AeronMpscConcurrentArrayQueue
impl AeronMpscConcurrentArrayQueue
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Trait Implementations§
Source§impl Clone for AeronMpscConcurrentArrayQueue
impl Clone for AeronMpscConcurrentArrayQueue
Source§fn clone(&self) -> AeronMpscConcurrentArrayQueue
fn clone(&self) -> AeronMpscConcurrentArrayQueue
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 Default for AeronMpscConcurrentArrayQueue
impl Default for AeronMpscConcurrentArrayQueue
This will create an instance where the struct is zeroed, use with care
Source§impl From<&AeronMpscConcurrentArrayQueue> for *mut aeron_mpsc_concurrent_array_queue_t
impl From<&AeronMpscConcurrentArrayQueue> for *mut aeron_mpsc_concurrent_array_queue_t
Source§fn from(value: &AeronMpscConcurrentArrayQueue) -> Self
fn from(value: &AeronMpscConcurrentArrayQueue) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
impl From<*const aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
Source§fn from(value: *const aeron_mpsc_concurrent_array_queue_t) -> Self
fn from(value: *const aeron_mpsc_concurrent_array_queue_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
impl From<*mut aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
Source§fn from(value: *mut aeron_mpsc_concurrent_array_queue_t) -> Self
fn from(value: *mut aeron_mpsc_concurrent_array_queue_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronMpscConcurrentArrayQueue> for *mut aeron_mpsc_concurrent_array_queue_t
impl From<AeronMpscConcurrentArrayQueue> for *mut aeron_mpsc_concurrent_array_queue_t
Source§fn from(value: AeronMpscConcurrentArrayQueue) -> Self
fn from(value: AeronMpscConcurrentArrayQueue) -> Self
Converts to this type from the input type.
Source§impl From<AeronMpscConcurrentArrayQueue> for aeron_mpsc_concurrent_array_queue_t
impl From<AeronMpscConcurrentArrayQueue> for aeron_mpsc_concurrent_array_queue_t
Source§fn from(value: AeronMpscConcurrentArrayQueue) -> Self
fn from(value: AeronMpscConcurrentArrayQueue) -> Self
Converts to this type from the input type.
Source§impl From<aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
impl From<aeron_mpsc_concurrent_array_queue_stct> for AeronMpscConcurrentArrayQueue
Source§fn from(value: aeron_mpsc_concurrent_array_queue_t) -> Self
fn from(value: aeron_mpsc_concurrent_array_queue_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronMpscConcurrentArrayQueue
impl !RefUnwindSafe for AeronMpscConcurrentArrayQueue
impl !Send for AeronMpscConcurrentArrayQueue
impl !Sync for AeronMpscConcurrentArrayQueue
impl Unpin for AeronMpscConcurrentArrayQueue
impl !UnwindSafe for AeronMpscConcurrentArrayQueue
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