Struct rusteron_archive::AeronHeader
source · pub struct AeronHeader { /* private fields */ }
Implementations§
source§impl AeronHeader
impl AeronHeader
pub fn new_zeroed() -> Result<Self, AeronCError>
sourcepub fn values(&self, values: &AeronHeaderValues) -> Result<i32, AeronCError>
pub fn values(&self, values: &AeronHeaderValues) -> Result<i32, AeronCError>
sourcepub fn position(&self) -> i64
pub fn position(&self) -> i64
Get the current position to which the Image has advanced on reading this message.
§Return
the current position to which the Image has advanced on reading this message.
sourcepub fn position_bits_to_shift(&self) -> usize
pub fn position_bits_to_shift(&self) -> usize
Get the number of times to left shift the term count to multiply by term length.
§Return
number of times to left shift the term count to multiply by term length.
sourcepub fn next_term_offset(&self) -> i32
pub fn next_term_offset(&self) -> i32
Calculates the offset of the frame immediately after this one.
§Return
the offset of the next frame.
sourcepub fn context(&self) -> *mut c_void
pub fn context(&self) -> *mut c_void
Get a pointer to the context associated with this message. Only valid during poll handling. Is normally a pointer to an Image instance.
§Return
a pointer to the context associated with this message.
pub fn get_inner(&self) -> *mut aeron_header_t
Trait Implementations§
source§impl Clone for AeronHeader
impl Clone for AeronHeader
source§fn clone(&self) -> AeronHeader
fn clone(&self) -> AeronHeader
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 AeronHeader
impl Debug for AeronHeader
source§impl Deref for AeronHeader
impl Deref for AeronHeader
source§impl From<&AeronHeader> for *mut aeron_header_t
impl From<&AeronHeader> for *mut aeron_header_t
source§fn from(value: &AeronHeader) -> Self
fn from(value: &AeronHeader) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_header_stct> for AeronHeader
impl From<*const aeron_header_stct> for AeronHeader
source§fn from(value: *const aeron_header_t) -> Self
fn from(value: *const aeron_header_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_header_stct> for AeronHeader
impl From<*mut aeron_header_stct> for AeronHeader
source§fn from(value: *mut aeron_header_t) -> Self
fn from(value: *mut aeron_header_t) -> Self
Converts to this type from the input type.
source§impl From<AeronHeader> for *mut aeron_header_t
impl From<AeronHeader> for *mut aeron_header_t
source§fn from(value: AeronHeader) -> Self
fn from(value: AeronHeader) -> Self
Converts to this type from the input type.
source§impl From<AeronHeader> for aeron_header_t
impl From<AeronHeader> for aeron_header_t
source§fn from(value: AeronHeader) -> Self
fn from(value: AeronHeader) -> Self
Converts to this type from the input type.
source§impl From<aeron_header_stct> for AeronHeader
impl From<aeron_header_stct> for AeronHeader
source§fn from(value: aeron_header_t) -> Self
fn from(value: aeron_header_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronHeader
impl !RefUnwindSafe for AeronHeader
impl !Send for AeronHeader
impl !Sync for AeronHeader
impl Unpin for AeronHeader
impl !UnwindSafe for AeronHeader
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
)