pub struct SrvHashRetrieveFileBased {
pub file_data_offset: u64,
pub file_data_length: u64,
pub buffer: Vec<u8>,
}Expand description
File-based response format for SRV_READ_HASH when HashRetrievalType is SRV_HASH_RETRIEVE_FILE_BASED. Valid for servers implementing the SMB 3.x dialect family. Contains hash information for a specified range of file data.
Reference: MS-SMB2 2.2.32.4.3
Fields§
§file_data_offset: u64File data offset corresponding to the start of the hash data returned.
file_data_length: u64The length, in bytes, starting from the file_data_offset that is covered by the hash data returned.
buffer: Vec<u8>A variable-length buffer that contains the retrieved portion of the Content Information File. TODO: Parse as Content Information File as specified in MS-PCCRC section 2.4.
Trait Implementations§
Source§impl BinRead for SrvHashRetrieveFileBased
impl BinRead for SrvHashRetrieveFileBased
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for SrvHashRetrieveFileBased
impl BinWrite for SrvHashRetrieveFileBased
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§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_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 SrvHashRetrieveFileBased
impl Debug for SrvHashRetrieveFileBased
Source§impl PartialEq for SrvHashRetrieveFileBased
impl PartialEq for SrvHashRetrieveFileBased
impl Eq for SrvHashRetrieveFileBased
impl StructuralPartialEq for SrvHashRetrieveFileBased
Auto Trait Implementations§
impl Freeze for SrvHashRetrieveFileBased
impl RefUnwindSafe for SrvHashRetrieveFileBased
impl Send for SrvHashRetrieveFileBased
impl Sync for SrvHashRetrieveFileBased
impl Unpin for SrvHashRetrieveFileBased
impl UnwindSafe for SrvHashRetrieveFileBased
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