Skip to main content

AeronPublicationErrorValues

Struct AeronPublicationErrorValues 

Source
pub struct AeronPublicationErrorValues { /* private fields */ }

Implementations§

Source§

impl AeronPublicationErrorValues

Source

pub fn new_zeroed_on_heap() -> Self

creates zeroed struct where the underlying c struct is on the heap

Source

pub fn new_zeroed_on_stack() -> Self

creates zeroed struct where the underlying c struct is on the stack (Use with care)

Source

pub fn registration_id(&self) -> i64

Source

pub fn destination_registration_id(&self) -> i64

Source

pub fn session_id(&self) -> i32

Source

pub fn stream_id(&self) -> i32

Source

pub fn receiver_id(&self) -> i64

Source

pub fn group_tag(&self) -> i64

Source

pub fn address_type(&self) -> i16

Source

pub fn source_port(&self) -> u16

Source

pub fn source_address(&self) -> [u8; 16]

Source

pub fn error_code(&self) -> i32

Source

pub fn error_message_length(&self) -> i32

Source

pub fn error_message(&self) -> [u8; 1]

Source

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.

Source

pub fn get_inner(&self) -> *mut aeron_publication_error_values_t

Source

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.

Source

pub fn get_inner_ref(&self) -> &aeron_publication_error_values_t

Source§

impl AeronPublicationErrorValues

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for AeronPublicationErrorValues

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for AeronPublicationErrorValues

Source§

type Target = aeron_publication_error_values_stct

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl From<&AeronPublicationErrorValues> for *mut aeron_publication_error_values_t

Source§

fn from(value: &AeronPublicationErrorValues) -> Self

Converts to this type from the input type.
Source§

impl From<AeronPublicationErrorValues> for *mut aeron_publication_error_values_t

Source§

fn from(value: AeronPublicationErrorValues) -> Self

Converts to this type from the input type.
Source§

impl From<AeronPublicationErrorValues> for aeron_publication_error_values_t

Source§

fn from(value: AeronPublicationErrorValues) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.