pub enum ServerMessage {
Ok,
Error(String),
SshData(Vec<u8>),
TunnelAlreadyOpen,
TunnelNotOpen,
StatusResponse(StatusInformation),
}
Expand description
A message that the server may send to the client.
Variants§
Ok
Generic message indicating success with whatever the client was asking for.
Error(String)
Generic message indicating an error with whatever the client was asking for.
SshData(Vec<u8>)
Output from an SSH process to be reported to the user by the client.
TunnelAlreadyOpen
In response to an Open
message, indicates that this tunnel is
already open.
TunnelNotOpen
In response to a Close
message, indicates that no such tunnel was
open.
StatusResponse(StatusInformation)
In response to a QueryStatus
message, information about the server
status.
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
Source§impl PartialEq for ServerMessage
impl PartialEq for ServerMessage
Source§impl Serialize for ServerMessage
impl Serialize for ServerMessage
impl StructuralPartialEq for ServerMessage
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