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
§
superuser: Option<Value>Eagerly start a privileged superuser peer at init time. cockpit
only routes superuser: "require" channels once such a peer exists;
without this the bridge denies every privileged channel
(access-denied). {"id": "sudo"} selects the sudo escalation
bridge, which works headlessly when the invoking user has
passwordless sudo.
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