pub enum Control {
Init {
version: u32,
host: String,
superuser: Option<Value>,
},
Open {
channel: String,
payload: String,
options: Map<String, Value>,
},
Done {
channel: String,
},
Close {
channel: String,
problem: Option<String>,
},
}Expand description
Control messages we SEND (empty-channel JSON, tagged by command).
Variants§
Init
Initial handshake message.
Fields
Open
Open a new channel.
Fields
Done
Signal end of input on a channel.
Close
Close a channel, optionally reporting a problem.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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