pub struct LeaseReq {
pub key: [u8; 16],
pub state: u32,
pub flags: u32,
pub parent_key: [u8; 16],
pub epoch: u16,
pub v2: bool,
}Expand description
Requested lease from an SMB2_CREATE_REQUEST_LEASE(_V2) context
([MS-SMB2] §2.2.13.2.8 / §2.2.13.2.10).
Fields§
§key: [u8; 16]Client-chosen lease key identifying the shared caching state.
state: u32Requested lease state (lease caching bits).
flags: u32Lease flags.
parent_key: [u8; 16]Parent lease key (v2 only; zero otherwise).
epoch: u16Lease epoch (v2 only; zero otherwise).
v2: boolTrue when the context was the v2 (52-byte) form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeaseReq
impl RefUnwindSafe for LeaseReq
impl Send for LeaseReq
impl Sync for LeaseReq
impl Unpin for LeaseReq
impl UnsafeUnpin for LeaseReq
impl UnwindSafe for LeaseReq
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