pub struct AuthOutcome {
pub ok: bool,
pub guest: bool,
pub user: String,
pub session_key: Option<[u8; 16]>,
}Expand description
Outcome of credential verification.
Fields§
§ok: boolCredentials accepted.
guest: boolPrincipal was mapped to guest rather than a real account.
user: StringEffective username.
session_key: Option<[u8; 16]>Exported SMB2 session key (16 bytes) when key exchange completed
against a verified secret ([MS-SMB2] §3.2.5.3.1). Signing keys are
derived from this; None disables signing for the session.
Trait Implementations§
Source§impl Clone for AuthOutcome
impl Clone for AuthOutcome
Source§fn clone(&self) -> AuthOutcome
fn clone(&self) -> AuthOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthOutcome
impl RefUnwindSafe for AuthOutcome
impl Send for AuthOutcome
impl Sync for AuthOutcome
impl Unpin for AuthOutcome
impl UnsafeUnpin for AuthOutcome
impl UnwindSafe for AuthOutcome
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