pub struct SshPacketDisconnect<'a> {
pub reason_code: u32,
pub description: &'a [u8],
pub lang: &'a [u8],
}
Expand description
SSH Disconnection Message
Defined in RFC4253 Section 11.1.
Fields§
§reason_code: u32
§description: &'a [u8]
§lang: &'a [u8]
Implementations§
Source§impl<'a> SshPacketDisconnect<'a>
impl<'a> SshPacketDisconnect<'a>
Sourcepub fn get_description(&self) -> Result<&str, Utf8Error>
pub fn get_description(&self) -> Result<&str, Utf8Error>
Parse Disconnection Description
Sourcepub fn get_reason(&self) -> SshDisconnectReason
pub fn get_reason(&self) -> SshDisconnectReason
Parse Disconnection Reason Code
Trait Implementations§
Source§impl<'a> Debug for SshPacketDisconnect<'a>
impl<'a> Debug for SshPacketDisconnect<'a>
Source§impl<'a> PartialEq for SshPacketDisconnect<'a>
impl<'a> PartialEq for SshPacketDisconnect<'a>
impl<'a> StructuralPartialEq for SshPacketDisconnect<'a>
Auto Trait Implementations§
impl<'a> Freeze for SshPacketDisconnect<'a>
impl<'a> RefUnwindSafe for SshPacketDisconnect<'a>
impl<'a> Send for SshPacketDisconnect<'a>
impl<'a> Sync for SshPacketDisconnect<'a>
impl<'a> Unpin for SshPacketDisconnect<'a>
impl<'a> UnwindSafe for SshPacketDisconnect<'a>
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