pub enum Inbound {
Challenge {
nonce: String,
},
AuthOk {
robot_id: String,
},
Denied {
reason: String,
},
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>,
},
Unknown,
}Variants§
Challenge
AuthOk
Denied
PilotConnecting
Punch
SessionRevoked
RelayOpen
The pilot could not connect directly and has attached to the cloud
relay; dial url, attach with token, and serve the session there.
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inbound
impl<'de> Deserialize<'de> for Inbound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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