pub struct SshVersion<'a> {
pub proto: &'a [u8],
pub software: &'a [u8],
pub comments: Option<&'a [u8]>,
}
Expand description
SSH Protocol Version Exchange
Defined in RFC4253 section 4.2.
Unparsed proto and software fields must contain US-ASCII printable characters only (without space and minus sign). There is no constraint on the comment field except it must not contain the null byte.
Fields§
§proto: &'a [u8]
§software: &'a [u8]
§comments: Option<&'a [u8]>
Trait Implementations§
Source§impl<'a> Debug for SshVersion<'a>
impl<'a> Debug for SshVersion<'a>
Source§impl<'a> PartialEq for SshVersion<'a>
impl<'a> PartialEq for SshVersion<'a>
impl<'a> StructuralPartialEq for SshVersion<'a>
Auto Trait Implementations§
impl<'a> Freeze for SshVersion<'a>
impl<'a> RefUnwindSafe for SshVersion<'a>
impl<'a> Send for SshVersion<'a>
impl<'a> Sync for SshVersion<'a>
impl<'a> Unpin for SshVersion<'a>
impl<'a> UnwindSafe for SshVersion<'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