#[non_exhaustive]pub struct KexInit {Show 13 fields
pub cookie: [u8; 16],
pub kex_algorithms: Vec<String>,
pub server_host_key_algorithms: Vec<String>,
pub encryption_algorithms_client_to_server: Vec<String>,
pub encryption_algorithms_server_to_client: Vec<String>,
pub mac_algorithms_client_to_server: Vec<String>,
pub mac_algorithms_server_to_client: Vec<String>,
pub compression_algorithms_client_to_server: Vec<String>,
pub compression_algorithms_server_to_client: Vec<String>,
pub languages_client_to_server: Vec<String>,
pub languages_server_to_client: Vec<String>,
pub first_kex_packet_follows: bool,
pub reserved: u32,
}Expand description
SSH_MSG_KEXINIT (RFC 4253 §7.1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.16 random bytes.
kex_algorithms: Vec<String>§server_host_key_algorithms: Vec<String>§encryption_algorithms_client_to_server: Vec<String>§encryption_algorithms_server_to_client: Vec<String>§mac_algorithms_client_to_server: Vec<String>§mac_algorithms_server_to_client: Vec<String>§compression_algorithms_client_to_server: Vec<String>§compression_algorithms_server_to_client: Vec<String>§languages_client_to_server: Vec<String>§languages_server_to_client: Vec<String>§first_kex_packet_follows: bool§reserved: u32Trait Implementations§
impl Eq for KexInit
impl StructuralPartialEq for KexInit
Auto Trait Implementations§
impl Forget for KexInit
impl Freeze for KexInit
impl Move for KexInit
impl RefUnwindSafe for KexInit
impl Send for KexInit
impl Sync for KexInit
impl Unpin for KexInit
impl UnsafeUnpin for KexInit
impl UnwindSafe for KexInit
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