pub enum Message {
PortForward {
headers: HashMap<String, String>,
payload: Vec<u8>,
},
Action(ActionRequest),
Commands(Vec<Command>),
Config(Value),
Other(Packet),
}
Expand description
Message definition
Variants§
PortForward
Port forward message, string represent version
Fields
Action(ActionRequest)
Action message
Commands(Vec<Command>)
Message type command
Config(Value)
Cloud configuration message
Other(Packet)
Unparsed messages
Implementations§
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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