#[non_exhaustive]pub struct Disconnect {
pub reason: u32,
pub description: String,
pub language: String,
}Expand description
SSH_MSG_DISCONNECT.
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.reason: u32§description: String§language: StringImplementations§
Trait Implementations§
Source§impl Clone for Disconnect
impl Clone for Disconnect
Source§impl Debug for Disconnect
impl Debug for Disconnect
Source§impl Default for Disconnect
impl Default for Disconnect
impl Eq for Disconnect
Source§impl PartialEq for Disconnect
impl PartialEq for Disconnect
impl StructuralPartialEq for Disconnect
Auto Trait Implementations§
impl Forget for Disconnect
impl Freeze for Disconnect
impl Move for Disconnect
impl RefUnwindSafe for Disconnect
impl Send for Disconnect
impl Sync for Disconnect
impl Unpin for Disconnect
impl UnsafeUnpin for Disconnect
impl UnwindSafe for Disconnect
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