pub struct TypedOutgoingMessage<Payload> {
pub payload: Payload,
pub destination: Endpoint,
}
Fields§
§payload: Payload
§destination: Endpoint
Trait Implementations§
Source§impl<Payload: Clone> Clone for TypedOutgoingMessage<Payload>
impl<Payload: Clone> Clone for TypedOutgoingMessage<Payload>
Source§fn clone(&self) -> TypedOutgoingMessage<Payload>
fn clone(&self) -> TypedOutgoingMessage<Payload>
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 moreSource§impl<Payload: Debug> Debug for TypedOutgoingMessage<Payload>
impl<Payload: Debug> Debug for TypedOutgoingMessage<Payload>
Source§impl<Payload> TryFrom<OutgoingMessage> for TypedOutgoingMessage<Payload>
impl<Payload> TryFrom<OutgoingMessage> for TypedOutgoingMessage<Payload>
Source§impl<Payload> TryFrom<TypedOutgoingMessage<Payload>> for OutgoingMessage
impl<Payload> TryFrom<TypedOutgoingMessage<Payload>> for OutgoingMessage
Auto Trait Implementations§
impl<Payload> Freeze for TypedOutgoingMessage<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for TypedOutgoingMessage<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for TypedOutgoingMessage<Payload>where
Payload: Send,
impl<Payload> Sync for TypedOutgoingMessage<Payload>where
Payload: Sync,
impl<Payload> Unpin for TypedOutgoingMessage<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for TypedOutgoingMessage<Payload>where
Payload: 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