pub struct LockReq {
pub file_id: FileId,
pub locks: Vec<LockElem>,
}Expand description
LOCK request (§2.2.26). The 24-byte header (StructureSize, LockCount,
LockSequence, FileId) is followed by LockCount 24-byte lock elements;
StructureSize is fixed at 48 (header + one element) per the SMB2 convention.
Fields§
§file_id: FileIdLocked handle.
locks: Vec<LockElem>One entry per locked/unlocked range.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockReq
impl RefUnwindSafe for LockReq
impl Send for LockReq
impl Sync for LockReq
impl Unpin for LockReq
impl UnsafeUnpin for LockReq
impl UnwindSafe for LockReq
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