pub enum SetInfoClass {
File(SetFileInfoClass),
FileSystem(SetFileSystemInfoClass),
Security(NullByte),
Quota(NullByte),
}Expand description
Information class specifying the type of information to set.
Defines the specific information class for each info type category. For Security and Quota operations, the class is set to null byte (0).
MS-SMB2 2.2.39
Variants§
File(SetFileInfoClass)
File information class (e.g., FileBasicInformation, FileRenameInformation)
FileSystem(SetFileSystemInfoClass)
Filesystem information class (e.g., FileFsControlInformation)
Security(NullByte)
Security information class (always 0)
Quota(NullByte)
Quota information class (always 0)
Trait Implementations§
Source§impl BinRead for SetInfoClass
impl BinRead for SetInfoClass
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 SetInfoClass
impl BinWrite for SetInfoClass
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 SetInfoClass
impl Debug for SetInfoClass
Source§impl From<SetFileInfoClass> for SetInfoClass
impl From<SetFileInfoClass> for SetInfoClass
Source§fn from(val: SetFileInfoClass) -> Self
fn from(val: SetFileInfoClass) -> Self
Converts to this type from the input type.
Source§impl From<SetFileSystemInfoClass> for SetInfoClass
impl From<SetFileSystemInfoClass> for SetInfoClass
Source§fn from(val: SetFileSystemInfoClass) -> Self
fn from(val: SetFileSystemInfoClass) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetInfoClass
impl PartialEq for SetInfoClass
impl Eq for SetInfoClass
impl StructuralPartialEq for SetInfoClass
Auto Trait Implementations§
impl Freeze for SetInfoClass
impl RefUnwindSafe for SetInfoClass
impl Send for SetInfoClass
impl Sync for SetInfoClass
impl Unpin for SetInfoClass
impl UnwindSafe for SetInfoClass
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