pub enum ControlCommand {
Register {
name: String,
protocol: ServiceProtocol,
local_port: u16,
remote_port: u16,
},
Unregister {
service_id: Uuid,
},
ConnectAck {
connection_id: Uuid,
},
ConnectFail {
connection_id: Uuid,
reason: String,
},
Disconnect,
}Expand description
Commands to send to the tunnel server
Variants§
Register
Register a new service
Fields
§
protocol: ServiceProtocolProtocol type
Unregister
Unregister an existing service
ConnectAck
Acknowledge an incoming connection
ConnectFail
Reject an incoming connection
Disconnect
Gracefully disconnect from the server
Trait Implementations§
Source§impl Clone for ControlCommand
impl Clone for ControlCommand
Source§fn clone(&self) -> ControlCommand
fn clone(&self) -> ControlCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlCommand
impl RefUnwindSafe for ControlCommand
impl Send for ControlCommand
impl Sync for ControlCommand
impl Unpin for ControlCommand
impl UnsafeUnpin for ControlCommand
impl UnwindSafe for ControlCommand
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