pub struct AeronPublicationError { /* private fields */ }
Implementations§
Source§impl AeronPublicationError
impl AeronPublicationError
pub fn new( registration_id: i64, destination_registration_id: i64, session_id: i32, stream_id: i32, receiver_id: i64, group_tag: i64, address_type: i16, source_port: u16, source_address: [u8; 16], error_code: i32, error_message_length: i32, error_message: [u8; 1], ) -> Result<Self, AeronCError>
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
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]
pub fn get_inner(&self) -> *mut aeron_publication_error_t
Source§impl AeronPublicationError
impl AeronPublicationError
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Trait Implementations§
Source§impl Clone for AeronPublicationError
impl Clone for AeronPublicationError
Source§fn clone(&self) -> AeronPublicationError
fn clone(&self) -> AeronPublicationError
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 AeronPublicationError
impl Debug for AeronPublicationError
Source§impl Default for AeronPublicationError
impl Default for AeronPublicationError
This will create an instance where the struct is zeroed, use with care
Source§impl Deref for AeronPublicationError
impl Deref for AeronPublicationError
Source§impl From<&AeronPublicationError> for *mut aeron_publication_error_t
impl From<&AeronPublicationError> for *mut aeron_publication_error_t
Source§fn from(value: &AeronPublicationError) -> Self
fn from(value: &AeronPublicationError) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_publication_error_stct> for AeronPublicationError
impl From<*const aeron_publication_error_stct> for AeronPublicationError
Source§fn from(value: *const aeron_publication_error_t) -> Self
fn from(value: *const aeron_publication_error_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_publication_error_stct> for AeronPublicationError
impl From<*mut aeron_publication_error_stct> for AeronPublicationError
Source§fn from(value: *mut aeron_publication_error_t) -> Self
fn from(value: *mut aeron_publication_error_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronPublicationError> for *mut aeron_publication_error_t
impl From<AeronPublicationError> for *mut aeron_publication_error_t
Source§fn from(value: AeronPublicationError) -> Self
fn from(value: AeronPublicationError) -> Self
Converts to this type from the input type.
Source§impl From<AeronPublicationError> for aeron_publication_error_t
impl From<AeronPublicationError> for aeron_publication_error_t
Source§fn from(value: AeronPublicationError) -> Self
fn from(value: AeronPublicationError) -> Self
Converts to this type from the input type.
Source§impl From<aeron_publication_error_stct> for AeronPublicationError
impl From<aeron_publication_error_stct> for AeronPublicationError
Source§fn from(value: aeron_publication_error_t) -> Self
fn from(value: aeron_publication_error_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronPublicationError
impl !RefUnwindSafe for AeronPublicationError
impl !Send for AeronPublicationError
impl !Sync for AeronPublicationError
impl Unpin for AeronPublicationError
impl !UnwindSafe for AeronPublicationError
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