pub enum Event {
Connected,
PilotConnecting {
session_id: String,
pilot_ip: Option<String>,
role: Role,
direction: Direction,
},
Punch {
session_id: String,
pilot_ip: Option<String>,
},
SessionRevoked {
session_id: String,
reason: String,
},
RelayOpen {
session_id: String,
url: String,
token: String,
role: Role,
pilot_ip: Option<String>,
},
Disconnected,
Denied {
reason: String,
},
}Expand description
Inbound events the agent must react to.
Variants§
Connected
Authenticated and ready; the client re-sends the current announce itself.
PilotConnecting
Punch
SessionRevoked
RelayOpen
A pilot is waiting on the cloud relay for this session (ADR 0010).
Disconnected
The socket dropped; the client is reconnecting. Sessions already established over QUIC are unaffected.
Denied
Authentication was refused. The client keeps retrying slowly, but this is almost always a configuration problem the operator must see.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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