pub struct AeronHeader { /* private fields */ }
Implementations§
Source§impl AeronHeader
impl AeronHeader
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
Sourcepub fn values(&self, values: &AeronHeaderValues) -> Result<i32, AeronCError>
pub fn values(&self, values: &AeronHeaderValues) -> Result<i32, AeronCError>
Sourcepub fn get_values(&self) -> Result<AeronHeaderValues, AeronCError>
pub fn get_values(&self) -> Result<AeronHeaderValues, AeronCError>
Get all of the field values from the header. This will do a memcpy into the supplied header_values_t pointer.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more