pub struct ConnState {
pub challenge: [u8; 8],
pub negotiated: bool,
pub uid: u16,
pub auth_pending: bool,
pub upgraded_smb2: bool,
pub spnego: bool,
pub session: Option<Session>,
pub trees: HashMap<u16, String>,
pub handles: HashMap<u16, Box<OpenFile>>,
pub searches: HashMap<u16, SearchCtx>,
}Expand description
Per-connection state machine.
Fields§
§challenge: [u8; 8]NTLM challenge generated per connection at negotiate.
negotiated: boolNEGOTIATE completed.
uid: u16Current UID (0 until first session setup allocates one).
auth_pending: boolMulti-leg authentication in progress.
upgraded_smb2: boolClient upgraded from SMB1 multi-protocol negotiate to SMB2.
spnego: boolClient initiated SPNEGO-wrapped NTLMSSP.
session: Option<Session>Session once authenticated (None during null-session setup).
trees: HashMap<u16, String>TID → share-name map.
handles: HashMap<u16, Box<OpenFile>>FID → open handle table.
searches: HashMap<u16, SearchCtx>Active directory searches keyed by SID.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConnState
impl !Send for ConnState
impl !Sync for ConnState
impl !UnwindSafe for ConnState
impl Freeze for ConnState
impl Unpin for ConnState
impl UnsafeUnpin for ConnState
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