Struct ntex_amqp::SenderLink
source · pub struct SenderLink { /* private fields */ }
Implementations§
source§impl SenderLink
impl SenderLink
sourcepub fn name(&self) -> &ByteString
pub fn name(&self) -> &ByteString
Name of the sender link
sourcepub fn remote_handle(&self) -> Handle
pub fn remote_handle(&self) -> Handle
Remote handle
sourcepub async fn ready(&self) -> bool
pub async fn ready(&self) -> bool
Get notification when packet could be send to the peer.
Result indicates if connection is alive
sourcepub fn error(&self) -> Option<&AmqpProtocolError>
pub fn error(&self) -> Option<&AmqpProtocolError>
Check link error
sourcepub fn delivery<T>(&self, body: T) -> DeliveryBuilderwhere
T: Into<TransferBody>,
pub fn delivery<T>(&self, body: T) -> DeliveryBuilderwhere
T: Into<TransferBody>,
Start delivery process
sourcepub fn close_with_error<E>(
&self,
error: E
) -> impl Future<Output = Result<(), AmqpProtocolError>>
pub fn close_with_error<E>( &self, error: E ) -> impl Future<Output = Result<(), AmqpProtocolError>>
Close sender link with error
pub fn on_close(&self) -> Waiter
sourcepub fn on_credit_update(&self) -> Waiter
pub fn on_credit_update(&self) -> Waiter
Notify when credit get updated
After notification credit must be checked again, other waiters could consume it.
pub fn max_message_size(&self) -> Option<u32>
pub fn set_max_message_size(&self, value: u32)
Trait Implementations§
source§impl Clone for SenderLink
impl Clone for SenderLink
source§fn clone(&self) -> SenderLink
fn clone(&self) -> SenderLink
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 moreAuto Trait Implementations§
impl Freeze for SenderLink
impl !RefUnwindSafe for SenderLink
impl !Send for SenderLink
impl !Sync for SenderLink
impl Unpin for SenderLink
impl !UnwindSafe for SenderLink
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