Enum stund_protocol::ServerMessage
source · 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
sourceimpl Debug for ServerMessage
impl Debug for ServerMessage
sourceimpl<'de> Deserialize<'de> for ServerMessage
impl<'de> Deserialize<'de> for ServerMessage
sourcefn 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
sourceimpl PartialEq<ServerMessage> for ServerMessage
impl PartialEq<ServerMessage> for ServerMessage
sourcefn eq(&self, other: &ServerMessage) -> bool
fn eq(&self, other: &ServerMessage) -> bool
sourceimpl Serialize for ServerMessage
impl Serialize for ServerMessage
impl StructuralPartialEq for ServerMessage
Auto Trait Implementations
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more