Enum bore_cli::shared::ServerMessage
source · pub enum ServerMessage {
Challenge(Uuid),
Hello(u16),
Heartbeat,
Connection(Uuid),
Error(String),
}
Expand description
A message from the server on the control connection.
Variants§
Challenge(Uuid)
Authentication challenge, sent as the first message, if enabled.
Hello(u16)
Response to a client’s initial message, with actual public port.
Heartbeat
No-op used to test if the client is still reachable.
Connection(Uuid)
Asks the client to accept a forwarded TCP connection.
Error(String)
Indicates a server error that terminates the connection.
Trait Implementations§
source§impl Debug for ServerMessage
impl Debug for ServerMessage
source§impl<'de> Deserialize<'de> for ServerMessage
impl<'de> Deserialize<'de> for ServerMessage
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 ServerMessage
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
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