pub struct SessionScope {
pub trees: HashMap<u32, String>,
pub handles: HashMap<[u8; 16], Box<OpenFile>>,
pub channel_seq: HashMap<[u8; 16], ChannelSeq>,
}Expand description
State shared by every channel bound to one session.
Fields§
§trees: HashMap<u32, String>TreeId -> share name (Session.TreeConnectTable).
handles: HashMap<[u8; 16], Box<OpenFile>>Open handles keyed by 16-byte SMB2 FileId (Session.OpenTable).
channel_seq: HashMap<[u8; 16], ChannelSeq>Per-open channel-sequence replay state keyed by FileId ([MS-SMB2] §3.3.5.2.10), shared so a bound channel sees the same Open.ChannelSequence.
Trait Implementations§
Source§impl Default for SessionScope
impl Default for SessionScope
Source§fn default() -> SessionScope
fn default() -> SessionScope
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SessionScope
impl !Send for SessionScope
impl !Sync for SessionScope
impl !UnwindSafe for SessionScope
impl Freeze for SessionScope
impl Unpin for SessionScope
impl UnsafeUnpin for SessionScope
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