pub struct AeronAsyncDestination<S: ResourceStorage<aeron_async_destination_t> = CResource<aeron_async_destination_t>> { /* private fields */ }Implementations§
Source§impl AeronAsyncDestination<CResource<aeron_async_destination_t>>
impl AeronAsyncDestination<CResource<aeron_async_destination_t>>
Sourcepub fn aeron_publication_async_add_destination(
client: &Aeron,
publication: &AeronPublication,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_publication_async_add_destination( client: &Aeron, publication: &AeronPublication, uri: &CStr, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_publication_async_remove_destination(
client: &Aeron,
publication: &AeronPublication,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_publication_async_remove_destination( client: &Aeron, publication: &AeronPublication, uri: &CStr, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_publication_async_remove_destination_by_id(
client: &Aeron,
publication: &AeronPublication,
destination_registration_id: i64,
) -> Result<Self, AeronCError>
pub fn aeron_publication_async_remove_destination_by_id( client: &Aeron, publication: &AeronPublication, destination_registration_id: i64, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_exclusive_publication_async_add_destination(
client: &Aeron,
publication: &AeronExclusivePublication,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_exclusive_publication_async_add_destination( client: &Aeron, publication: &AeronExclusivePublication, uri: &CStr, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_exclusive_publication_async_remove_destination(
client: &Aeron,
publication: &AeronExclusivePublication,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_exclusive_publication_async_remove_destination( client: &Aeron, publication: &AeronExclusivePublication, uri: &CStr, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_exclusive_publication_async_remove_destination_by_id(
client: &Aeron,
publication: &AeronExclusivePublication,
destination_registration_id: i64,
) -> Result<Self, AeronCError>
pub fn aeron_exclusive_publication_async_remove_destination_by_id( client: &Aeron, publication: &AeronExclusivePublication, destination_registration_id: i64, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_subscription_async_add_destination(
client: &Aeron,
subscription: &AeronSubscription,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_subscription_async_add_destination( client: &Aeron, subscription: &AeronSubscription, uri: &CStr, ) -> Result<Self, AeronCError>
Sourcepub fn aeron_subscription_async_remove_destination(
client: &Aeron,
subscription: &AeronSubscription,
uri: &CStr,
) -> Result<Self, AeronCError>
pub fn aeron_subscription_async_remove_destination( client: &Aeron, subscription: &AeronSubscription, uri: &CStr, ) -> Result<Self, AeronCError>
Source§impl<S: ResourceStorage<aeron_async_destination_t>> AeronAsyncDestination<S>
impl<S: ResourceStorage<aeron_async_destination_t>> AeronAsyncDestination<S>
Sourcepub fn aeron_publication_async_destination_poll(
&self,
) -> Result<i32, AeronCError>
pub fn aeron_publication_async_destination_poll( &self, ) -> Result<i32, AeronCError>
Poll the completion of the add/remove of a destination to/from a publication.
§Return
0 for not complete (try again), 1 for completed successfully, or -1 for an error.
Sourcepub fn aeron_exclusive_publication_async_destination_poll(
&self,
) -> Result<i32, AeronCError>
pub fn aeron_exclusive_publication_async_destination_poll( &self, ) -> Result<i32, AeronCError>
Poll the completion of the add/remove of a destination to/from an exclusive publication.
§Return
0 for not complete (try again), 1 for completed successfully, or -1 for an error.
Sourcepub fn aeron_subscription_async_destination_poll(
&self,
) -> Result<i32, AeronCError>
pub fn aeron_subscription_async_destination_poll( &self, ) -> Result<i32, AeronCError>
Poll the completion of add/remove of a destination to/from a subscription.
§Return
0 for not complete (try again), 1 for completed successfully, or -1 for an error.
Sourcepub fn get_registration_id(&self) -> i64
pub fn get_registration_id(&self) -> i64
Gets the registration_id for the destination command supplied. Note that this is the correlation_id used for the specified destination command, not the registration_id for the original parent resource (publication, subscription).
§Return
correlation_id sent to driver.
pub fn get_inner(&self) -> *mut aeron_async_destination_t
Sourcepub unsafe fn get_inner_mut(&self) -> &mut aeron_async_destination_t
pub unsafe fn get_inner_mut(&self) -> &mut aeron_async_destination_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_async_destination_t
pub unsafe fn get_inner_ref(&self) -> &aeron_async_destination_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.
Source§impl AeronAsyncDestination
impl AeronAsyncDestination
Sourcepub unsafe fn from_ptr(
ptr: *mut aeron_async_destination_t,
) -> AeronAsyncDestination<Borrowed<aeron_async_destination_t>>
pub unsafe fn from_ptr( ptr: *mut aeron_async_destination_t, ) -> AeronAsyncDestination<Borrowed<aeron_async_destination_t>>
Borrow a native pointer without taking ownership.
§Safety
The pointer must be non-null. It and its parents must remain live for every use. Calls must follow Aeron’s threading and aliasing rules.
Trait Implementations§
Source§impl<S: Clone + ResourceStorage<aeron_async_destination_t>> Clone for AeronAsyncDestination<S>
impl<S: Clone + ResourceStorage<aeron_async_destination_t>> Clone for AeronAsyncDestination<S>
Source§fn clone(&self) -> AeronAsyncDestination<S>
fn clone(&self) -> AeronAsyncDestination<S>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more