pub enum SimpleExternalMessage {
Continue(SimpleContinueExternalTransitionMessage),
CopyIn(SimpleCopyInExternalTransitionMessage),
CopyOut(SimpleCopyOutExternalTransitionMessage),
CopyBoth(SimpleCopyBothExternalTransitionMessage),
Ready(SimpleReadyExternalTransitionMessage),
Error(SimpleErrorExternalTransitionMessage),
}Expand description
Owned peer-initiated messages legal in Simple.
Variants§
Continue(SimpleContinueExternalTransitionMessage)
The Event::Continue transition.
CopyIn(SimpleCopyInExternalTransitionMessage)
The Event::CopyIn transition.
CopyOut(SimpleCopyOutExternalTransitionMessage)
The Event::CopyOut transition.
CopyBoth(SimpleCopyBothExternalTransitionMessage)
The Event::CopyBoth transition.
Ready(SimpleReadyExternalTransitionMessage)
The Event::Ready transition.
Error(SimpleErrorExternalTransitionMessage)
The Event::Error transition.
Implementations§
Source§impl SimpleExternalMessage
impl SimpleExternalMessage
Sourcepub const fn as_wire(&self) -> &BackendMessage
pub const fn as_wire(&self) -> &BackendMessage
Borrows the underlying decoded wire message.
Sourcepub fn into_wire(self) -> BackendMessage
pub fn into_wire(self) -> BackendMessage
Returns the underlying decoded wire message.
Trait Implementations§
Source§impl AsRef<BackendMessage> for SimpleExternalMessage
impl AsRef<BackendMessage> for SimpleExternalMessage
Source§fn as_ref(&self) -> &BackendMessage
fn as_ref(&self) -> &BackendMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<SimpleExternalMessage> for BackendMessage
impl From<SimpleExternalMessage> for BackendMessage
Source§fn from(message: SimpleExternalMessage) -> Self
fn from(message: SimpleExternalMessage) -> Self
Converts to this type from the input type.
Source§impl TryFrom<BackendMessage> for SimpleExternalMessage
impl TryFrom<BackendMessage> for SimpleExternalMessage
Source§type Error = BackendMessage
type Error = BackendMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>
fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for SimpleExternalMessage
impl RefUnwindSafe for SimpleExternalMessage
impl Send for SimpleExternalMessage
impl Sync for SimpleExternalMessage
impl Unpin for SimpleExternalMessage
impl UnsafeUnpin for SimpleExternalMessage
impl UnwindSafe for SimpleExternalMessage
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