pub enum PortalMessage {
Ping,
Pong,
Disconnect,
Payload(Vec<u8>),
}
Expand description
A command message type for a Portal
Variants§
Ping
First message that Inlet sends to the Outlet
Pong
First message that Outlet sends to the Inlet
Disconnect
Message to indicate that connection from Outlet to the target, or from the target to the Inlet was dropped
Payload(Vec<u8>)
Message with binary payload
Trait Implementations§
source§impl Debug for PortalMessage
impl Debug for PortalMessage
source§impl<'de> Deserialize<'de> for PortalMessage
impl<'de> Deserialize<'de> for PortalMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PortalMessage
impl Serialize for PortalMessage
impl Message for PortalMessage
Auto Trait Implementations§
impl RefUnwindSafe for PortalMessage
impl Send for PortalMessage
impl Sync for PortalMessage
impl Unpin for PortalMessage
impl UnwindSafe for PortalMessage
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