pub struct QueryInfoRequest {
pub structure_size: u16,
pub info_type: u8,
pub file_information_class: u8,
pub output_buffer_length: u32,
pub input_buffer_offset: u16,
pub reserved: u16,
pub input_buffer_length: u32,
pub additional_information: u32,
pub flags: u32,
pub file_id: FileId,
pub input_buffer: Vec<u8>,
}Expand description
SMB2_QUERY_INFO_REQUEST (MS-SMB2 §2.2.37).
Fields§
§structure_size: u16§info_type: u8§file_information_class: u8§output_buffer_length: u32§input_buffer_offset: u16§reserved: u16§input_buffer_length: u32§additional_information: u32AdditionalInformation: which fields of the security descriptor to
return when info_type == Security, or the starting EA index for a
FileFullEaInformation query. Zero for all other queries.
flags: u32§file_id: FileId§input_buffer: Vec<u8>input_buffer_length bytes at input_buffer_offset, counted from
the start of the SMB2 header and not before the end of the fixed
fields: the extended attribute names of a FileFullEaInformation
query.
Implementations§
Source§impl QueryInfoRequest
impl QueryInfoRequest
Sourcepub const FLAG_RESTART_SCAN: u32 = 0x0000_0001
pub const FLAG_RESTART_SCAN: u32 = 0x0000_0001
Flag: SL_RESTART_SCAN.
Sourcepub const FLAG_RETURN_SINGLE_ENTRY: u32 = 0x0000_0002
pub const FLAG_RETURN_SINGLE_ENTRY: u32 = 0x0000_0002
Flag: SL_RETURN_SINGLE_ENTRY.
Sourcepub const FLAG_INDEX_SPECIFIED: u32 = 0x0000_0004
pub const FLAG_INDEX_SPECIFIED: u32 = 0x0000_0004
Flag: SL_INDEX_SPECIFIED.
pub fn info_type_enum(&self) -> Option<InfoType>
pub fn parse(buf: &[u8]) -> Result<Self, ProtoError>
pub fn write_to(&self, out: &mut Vec<u8>) -> Result<(), ProtoError>
Trait Implementations§
Source§impl BinRead for QueryInfoRequest
impl BinRead for QueryInfoRequest
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<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§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_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. 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 QueryInfoRequest
impl BinWrite for QueryInfoRequest
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<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 Clone for QueryInfoRequest
impl Clone for QueryInfoRequest
Source§impl Debug for QueryInfoRequest
impl Debug for QueryInfoRequest
impl Eq for QueryInfoRequest
Source§impl PartialEq for QueryInfoRequest
impl PartialEq for QueryInfoRequest
Source§impl ReadEndian for QueryInfoRequest
impl ReadEndian for QueryInfoRequest
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl StructuralPartialEq for QueryInfoRequest
Source§impl WriteEndian for QueryInfoRequest
impl WriteEndian for QueryInfoRequest
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Forget for QueryInfoRequest
impl Freeze for QueryInfoRequest
impl Move for QueryInfoRequest
impl RefUnwindSafe for QueryInfoRequest
impl Send for QueryInfoRequest
impl Sync for QueryInfoRequest
impl Unpin for QueryInfoRequest
impl UnsafeUnpin for QueryInfoRequest
impl UnwindSafe for QueryInfoRequest
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