pub enum ControlEvent {
Authenticated {
tunnel_id: Uuid,
},
ServiceRegistered {
name: String,
service_id: Uuid,
},
ServiceFailed {
name: String,
reason: String,
},
IncomingConnection {
service_id: Uuid,
connection_id: Uuid,
client_addr: String,
},
Heartbeat {
timestamp: u64,
},
Disconnected {
reason: String,
},
Error {
message: String,
},
}Expand description
Events received from the tunnel server
Variants§
Authenticated
Successfully authenticated with the server
ServiceRegistered
A service was successfully registered
ServiceFailed
A service registration failed
IncomingConnection
An incoming connection is being established
Fields
Heartbeat
Heartbeat received from the server
Disconnected
Disconnected from the server
Error
An error occurred
Trait Implementations§
Source§impl Clone for ControlEvent
impl Clone for ControlEvent
Source§fn clone(&self) -> ControlEvent
fn clone(&self) -> ControlEvent
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 ControlEvent
impl RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl UnsafeUnpin for ControlEvent
impl UnwindSafe for ControlEvent
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