pub enum OutgoingMessage<T>where
T: Serialize,{
Event(OutgoingEvent<T>),
Request(OutgoingRequest<T>),
Response(OutgoingResponse<T>),
}
Expand description
A generic received message.
Variants§
Trait Implementations§
Source§impl<T> Debug for OutgoingMessage<T>
impl<T> Debug for OutgoingMessage<T>
Source§impl<T> IntoEnvelope for OutgoingMessage<T>where
T: Serialize,
impl<T> IntoEnvelope for OutgoingMessage<T>where
T: Serialize,
Source§fn into_envelope(self) -> Result<OutgoingEnvelope, Error>
fn into_envelope(self) -> Result<OutgoingEnvelope, Error>
Wraps an outgoing message into envelope format.
Source§impl<T: Serialize> IntoPublishableMessage for OutgoingMessage<T>
impl<T: Serialize> IntoPublishableMessage for OutgoingMessage<T>
Auto Trait Implementations§
impl<T> Freeze for OutgoingMessage<T>where
T: Freeze,
impl<T> RefUnwindSafe for OutgoingMessage<T>where
T: RefUnwindSafe,
impl<T> Send for OutgoingMessage<T>where
T: Send,
impl<T> Sync for OutgoingMessage<T>where
T: Sync,
impl<T> Unpin for OutgoingMessage<T>where
T: Unpin,
impl<T> UnwindSafe for OutgoingMessage<T>where
T: UnwindSafe,
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