pub struct LockRequest {
pub lock_sequence: LockSequence,
pub file_id: FileId,
pub locks: Vec<LockElement>,
}Expand description
SMB2 LOCK Request packet used to lock or unlock portions of a file. Multiple segments of the file can be affected with a single request, but they all must be within the same file.
Reference: MS-SMB2 2.2.26
Fields§
§lock_sequence: LockSequenceLock sequence information for the request.
file_id: FileIdFile identifier on which to perform the byte range locks or unlocks.
locks: Vec<LockElement>Array of lock elements defining the ranges to be locked or unlocked.
Trait Implementations§
Source§impl BinWrite for LockRequest
impl BinWrite for LockRequest
Source§fn write_options<W>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: <LockRequest as BinWrite>::Args<'_>,
) -> Result<(), Error>
fn write_options<W>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: <LockRequest as BinWrite>::Args<'_>, ) -> Result<(), Error>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for LockRequest
impl Debug for LockRequest
Source§impl From<LockRequest> for RequestContent
impl From<LockRequest> for RequestContent
Source§fn from(req: LockRequest) -> RequestContent
fn from(req: LockRequest) -> RequestContent
Converts to this type from the input type.
Source§impl PartialEq for LockRequest
impl PartialEq for LockRequest
impl Eq for LockRequest
impl StructuralPartialEq for LockRequest
Auto Trait Implementations§
impl Freeze for LockRequest
impl RefUnwindSafe for LockRequest
impl Send for LockRequest
impl Sync for LockRequest
impl Unpin for LockRequest
impl UnsafeUnpin for LockRequest
impl UnwindSafe for LockRequest
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