pub enum MessageType {
Origin(Audience),
Reply(Box<Message>),
}
Expand description
MessageType captures details about the Message’s source.
Variants§
Origin(Audience)
A completely new message that is intended for the specified audience.
Reply(Box<Message>)
A response to a previously received message. Note that the value must be boxed to mitigate recursive sizing issues as MessageType is held by Message.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl !RefUnwindSafe for MessageType
impl !Send for MessageType
impl !Sync for MessageType
impl Unpin for MessageType
impl !UnwindSafe for MessageType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)