#[non_exhaustive]pub struct ClientIdentity {
pub hostname: String,
pub username: String,
}Expand description
Host-provided metadata for the V62 validation packet. Each field must fit within 15 UTF-8 bytes; the engine uppercases hostname before checking its size.
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.hostname: StringShort device hostname announced during P99 validation.
username: StringShort operating-system username announced during P99 validation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ClientIdentity
impl Freeze for ClientIdentity
impl RefUnwindSafe for ClientIdentity
impl Send for ClientIdentity
impl Sync for ClientIdentity
impl Unpin for ClientIdentity
impl UnsafeUnpin for ClientIdentity
impl UnwindSafe for ClientIdentity
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