pub struct AeronPublicationErrorValues { /* private fields */ }Implementations§
Source§impl AeronPublicationErrorValues
impl AeronPublicationErrorValues
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
creates zeroed struct where the underlying c struct is on the heap
Sourcepub fn new_zeroed_on_stack() -> Self
pub fn new_zeroed_on_stack() -> Self
creates zeroed struct where the underlying c struct is on the stack (Use with care)
pub fn registration_id(&self) -> i64
pub fn destination_registration_id(&self) -> i64
pub fn session_id(&self) -> i32
pub fn stream_id(&self) -> i32
pub fn receiver_id(&self) -> i64
pub fn group_tag(&self) -> i64
pub fn address_type(&self) -> i16
pub fn source_port(&self) -> u16
pub fn source_address(&self) -> [u8; 16]
pub fn error_code(&self) -> i32
pub fn error_message_length(&self) -> i32
pub fn error_message(&self) -> [u8; 1]
Sourcepub fn delete(&self)
pub fn delete(&self)
Delete a instance of AeronPublicationErrorValues that was created when making a copy
(aeron_publication_error_values_copy). This should not be use on the pointer received via the aeron_frame_handler_t.
pub fn get_inner(&self) -> *mut aeron_publication_error_values_t
Sourcepub unsafe fn get_inner_mut(&self) -> &mut aeron_publication_error_values_t
pub unsafe fn get_inner_mut(&self) -> &mut aeron_publication_error_values_t
Mutable access to the underlying C struct, minted from &self: nothing
prevents two live &mut at once, so the caller must ensure exclusive
access for the lifetime of the returned reference.
§Safety
No other reference (& or &mut) to the underlying struct may be
alive while the returned &mut is in use.
pub fn get_inner_ref(&self) -> &aeron_publication_error_values_t
Source§impl AeronPublicationErrorValues
impl AeronPublicationErrorValues
Sourcepub unsafe fn from_ptr(ptr: *mut aeron_publication_error_values_t) -> Self
pub unsafe fn from_ptr(ptr: *mut aeron_publication_error_values_t) -> Self
Wraps a pointer to a struct Aeron passes to a callback, without copying it
§Safety
ptr must point at a valid struct for as long as the result is used. For a
callback argument that is until the callback returns
Sourcepub unsafe fn clone_reference(&self) -> Self
pub unsafe fn clone_reference(&self) -> Self
Returns a second handle to the same underlying struct, without copying it. If owned on heap both handles share it; if borrowed, e.g. a callback argument, both point at the same C memory
§Safety
A callback argument lives in memory Aeron frees or reuses when the callback returns, so do not use the returned handle after that. Copy out the fields you need instead