pub struct Resources<'r> {
pub conn: &'r mut Smb2Conn,
pub server: &'r Arc<ServerShared>,
pub frame: &'r [u8],
}Expand description
Per-request access to the mutable connection and shared server state a handler needs. Borrowed for the duration of one dispatch on the connection’s single thread, so no locking is required for the per-connection half.
Fields§
§conn: &'r mut Smb2ConnPer-connection state (handles, session, credits, durable table…).
server: &'r Arc<ServerShared>Server-wide shared state (shares, lock/oplock/lease tables, sessions…).
frame: &'r [u8]The complete single-command frame, for handlers that read the raw body (e.g. WRITE payload) zero-copy.
Auto Trait Implementations§
impl<'r> !RefUnwindSafe for Resources<'r>
impl<'r> !Send for Resources<'r>
impl<'r> !Sync for Resources<'r>
impl<'r> !UnwindSafe for Resources<'r>
impl<'r> Freeze for Resources<'r>
impl<'r> Unpin for Resources<'r>
impl<'r> UnsafeUnpin for Resources<'r>
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