pub struct LapinPublisher { /* private fields */ }Expand description
The live fire-and-forget publisher, on the connection’s shared publish channel. Cheap to clone.
Paired from LapinPublish, so it always has a connection. It aliases
that connection, though, and may outlive it: after the broker shuts down every publish
reports AmqpError::Closed instead of silently succeeding against a dead connection.
Trait Implementations§
Source§impl Clone for LapinPublisher
impl Clone for LapinPublisher
Source§fn clone(&self) -> LapinPublisher
fn clone(&self) -> LapinPublisher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LapinPublisher
impl Debug for LapinPublisher
Source§impl Publisher for LapinPublisher
impl Publisher for LapinPublisher
Source§async fn publish(&self, msg: OutgoingMessage<'_>) -> Result<(), Self::Error>
async fn publish(&self, msg: OutgoingMessage<'_>) -> Result<(), Self::Error>
Publishes msg without waiting for a broker confirm.
§Errors
Returns AmqpError::Closed once the broker has shut down and
AmqpError::Publish when the channel rejects the frame.
§Cancel safety
Not cancel safe: dropping the future may leave the message published or not.
Auto Trait Implementations§
impl !RefUnwindSafe for LapinPublisher
impl !UnwindSafe for LapinPublisher
impl Freeze for LapinPublisher
impl Send for LapinPublisher
impl Sync for LapinPublisher
impl Unpin for LapinPublisher
impl UnsafeUnpin for LapinPublisher
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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