Struct ssh_parser::ssh::SshPacketDisconnect
[−]
[src]
pub struct SshPacketDisconnect<'a> { pub reason_code: u32, pub description: &'a [u8], pub lang: &'a [u8], }
SSH Disconnection Message
Defined in RFC4253 Section 11.1.
Fields
reason_code: u32
description: &'a [u8]
lang: &'a [u8]
Methods
impl<'a> SshPacketDisconnect<'a>
[src]
fn get_description(&self) -> Result<&str, Utf8Error>
Parse Disconnection Description
fn get_reason(&self) -> Option<SshDisconnectReason>
Parse Disconnection Reason Code
Trait Implementations
impl<'a> Debug for SshPacketDisconnect<'a>
[src]
impl<'a> PartialEq for SshPacketDisconnect<'a>
[src]
fn eq(&self, __arg_0: &SshPacketDisconnect<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SshPacketDisconnect<'a>) -> bool
This method tests for !=
.