Struct rusteron_rb::AeronBroadcastReceiver
source · pub struct AeronBroadcastReceiver { /* private fields */ }
Implementations§
source§impl AeronBroadcastReceiver
impl AeronBroadcastReceiver
pub fn new( scratch_buffer: [u8; 4096], buffer: *mut u8, descriptor: &AeronBroadcastDescriptor, capacity: usize, mask: usize, record_offset: usize, cursor: i64, next_record: i64, lapped_count: c_long, ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn scratch_buffer(&self) -> [u8; 4096]
pub fn buffer(&self) -> *mut u8
pub fn descriptor(&self) -> AeronBroadcastDescriptor
pub fn capacity(&self) -> usize
pub fn mask(&self) -> usize
pub fn record_offset(&self) -> usize
pub fn cursor(&self) -> i64
pub fn next_record(&self) -> i64
pub fn lapped_count(&self) -> c_long
pub fn init( &self, buffer: *mut c_void, length: usize, ) -> Result<i32, AeronCError>
pub fn receive<AeronBroadcastReceiverHandlerHandlerImpl: AeronBroadcastReceiverHandlerCallback>( &self, handler: Option<&Handler<AeronBroadcastReceiverHandlerHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_broadcast_receiver_t
source§impl AeronBroadcastReceiver
impl AeronBroadcastReceiver
pub fn buffer_mut(&self) -> &mut [u8] ⓘ
pub fn buffer_at_mut(&self, idx: usize, len: usize) -> &mut [u8] ⓘ
source§impl AeronBroadcastReceiver
impl AeronBroadcastReceiver
pub fn from_slice(buffer: &mut [u8]) -> Result<Self, AeronCError>
Trait Implementations§
source§impl Clone for AeronBroadcastReceiver
impl Clone for AeronBroadcastReceiver
source§fn clone(&self) -> AeronBroadcastReceiver
fn clone(&self) -> AeronBroadcastReceiver
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 AeronBroadcastReceiver
impl Debug for AeronBroadcastReceiver
source§impl Default for AeronBroadcastReceiver
impl Default for AeronBroadcastReceiver
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronBroadcastReceiver
impl Deref for AeronBroadcastReceiver
source§impl From<&AeronBroadcastReceiver> for *mut aeron_broadcast_receiver_t
impl From<&AeronBroadcastReceiver> for *mut aeron_broadcast_receiver_t
source§fn from(value: &AeronBroadcastReceiver) -> Self
fn from(value: &AeronBroadcastReceiver) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
impl From<*const aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
source§fn from(value: *const aeron_broadcast_receiver_t) -> Self
fn from(value: *const aeron_broadcast_receiver_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
impl From<*mut aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
source§fn from(value: *mut aeron_broadcast_receiver_t) -> Self
fn from(value: *mut aeron_broadcast_receiver_t) -> Self
Converts to this type from the input type.
source§impl From<AeronBroadcastReceiver> for *mut aeron_broadcast_receiver_t
impl From<AeronBroadcastReceiver> for *mut aeron_broadcast_receiver_t
source§fn from(value: AeronBroadcastReceiver) -> Self
fn from(value: AeronBroadcastReceiver) -> Self
Converts to this type from the input type.
source§impl From<AeronBroadcastReceiver> for aeron_broadcast_receiver_t
impl From<AeronBroadcastReceiver> for aeron_broadcast_receiver_t
source§fn from(value: AeronBroadcastReceiver) -> Self
fn from(value: AeronBroadcastReceiver) -> Self
Converts to this type from the input type.
source§impl From<aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
impl From<aeron_broadcast_receiver_stct> for AeronBroadcastReceiver
source§fn from(value: aeron_broadcast_receiver_t) -> Self
fn from(value: aeron_broadcast_receiver_t) -> Self
Converts to this type from the input type.
impl Send for AeronBroadcastReceiver
Auto Trait Implementations§
impl Freeze for AeronBroadcastReceiver
impl !RefUnwindSafe for AeronBroadcastReceiver
impl !Sync for AeronBroadcastReceiver
impl Unpin for AeronBroadcastReceiver
impl !UnwindSafe for AeronBroadcastReceiver
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
)