pub struct AeronPublicationErrorValuesOwned(/* private fields */);Expand description
A publication error frame copied by AeronPublicationErrorValues::try_to_owned.
Implementations§
Source§impl AeronPublicationErrorValuesOwned
impl AeronPublicationErrorValuesOwned
Sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
The full message as UTF-8. Invalid UTF-8 returns "<invalid UTF-8>".
Use Self::error_message_bytes to read the original bytes.
Sourcepub fn error_message_bytes(&self) -> &[u8] ⓘ
pub fn error_message_bytes(&self) -> &[u8] ⓘ
The full message bytes.
Methods from Deref<Target = AeronPublicationErrorValuesRef>§
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 unsafe fn delete(&self)
pub unsafe 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.
§Safety
This bypasses Rust ownership. Keep all retained pointers valid until native cleanup. Initializers require exclusive access and must not overwrite live native state or invalidate borrowed views. After raw removal or deletion, prevent all further access and Rust cleanup through every alias. Prefer the owning handle’s constructor, close or cancel method.
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.
Sourcepub unsafe fn get_inner_ref(&self) -> &aeron_publication_error_values_t
pub unsafe fn get_inner_ref(&self) -> &aeron_publication_error_values_t
Borrow the native struct.
§Safety
No Rust or native call may mutate the struct while this reference is alive. Shared wrappers also require coordination with other threads.
Sourcepub fn try_to_owned(
&self,
) -> Result<AeronPublicationErrorValuesOwned, AeronCError>
pub fn try_to_owned( &self, ) -> Result<AeronPublicationErrorValuesOwned, AeronCError>
Copy this error frame and its full message so it can outlive the callback. Aeron allocates the copy. Reading the borrowed frame does not allocate.