pub struct OutboundMessage {
pub subject: Subject,
pub reply: Option<Subject>,
pub payload: Bytes,
pub headers: Option<HeaderMap>,
}
Expand description
An outbound message to be published. Does not contain status or description which are valid only for inbound messages.
Fields§
§subject: Subject
§reply: Option<Subject>
§payload: Bytes
§headers: Option<HeaderMap>
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
Returns a duplicate 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 OutboundMessage
impl Debug for OutboundMessage
Source§impl From<OutboundMessage> for OutboundMessage
impl From<OutboundMessage> for OutboundMessage
Source§fn from(message: OutboundMessage) -> Self
fn from(message: OutboundMessage) -> Self
Converts to this type from the input type.
Source§impl Sink<OutboundMessage> for Client
impl Sink<OutboundMessage> for Client
Source§type Error = Error<PublishErrorKind>
type Error = Error<PublishErrorKind>
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
msg: OutboundMessage,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, msg: OutboundMessage, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreAuto Trait Implementations§
impl !Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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