pub enum SshPacket<'a> {
Banner(SshBanner<'a>),
KexInit(SshKexInit<'a>),
}Expand description
Unified SSH identification payload.
SSH traffic on port 22 starts with either a plaintext banner line
(SSH-2.0-...) or, after the banner, a binary packet containing
SSH_MSG_KEXINIT. This enum wraps both possibilities so that a single
port-based dispatch can return either one.
Variants§
Banner(SshBanner<'a>)
KexInit(SshKexInit<'a>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SshPacket<'a>
impl<'a> RefUnwindSafe for SshPacket<'a>
impl<'a> Send for SshPacket<'a>
impl<'a> Sync for SshPacket<'a>
impl<'a> Unpin for SshPacket<'a>
impl<'a> UnsafeUnpin for SshPacket<'a>
impl<'a> UnwindSafe for SshPacket<'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