pub struct FileDirectoryInformation {
pub file_index: u32,
pub creation_time: FileTime,
pub last_access_time: FileTime,
pub last_write_time: FileTime,
pub change_time: FileTime,
pub end_of_file: u64,
pub allocation_size: u64,
pub file_attributes: FileAttributes,
pub file_name: SizedWideString,
}Expand description
Query detailed information for the files in a directory.
This should be wrapped in ChainedItemList<T> to represent a list of these structures.
Fields§
§file_index: u32The byte offset of the file within the parent directory. This member is undefined for file systems, such as NTFS, in which the position of a file within the parent directory is not fixed and can be changed at any time to maintain sort order.
creation_time: FileTimeThe time when the file was created.
last_access_time: FileTimeThe time when the file was last accessed.
last_write_time: FileTimeThe time when data was last written to the file.
change_time: FileTimeThe time when the file was last changed.
end_of_file: u64The absolute new end-of-file position as a byte offset from the start of the file.
allocation_size: u64The number of bytes allocated for the file.
file_attributes: FileAttributesThe file attributes.
file_name: SizedWideStringThe name of the file.
Trait Implementations§
Source§impl BinRead for FileDirectoryInformation
impl BinRead for FileDirectoryInformation
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 FileDirectoryInformation
impl BinWrite for FileDirectoryInformation
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 FileDirectoryInformation
impl Debug for FileDirectoryInformation
Source§impl From<FileDirectoryInformation> for QueryDirectoryInfo
impl From<FileDirectoryInformation> for QueryDirectoryInfo
Source§fn from(value: FileDirectoryInformation) -> QueryDirectoryInfo
fn from(value: FileDirectoryInformation) -> QueryDirectoryInfo
Converts to this type from the input type.
Source§impl PartialEq for FileDirectoryInformation
impl PartialEq for FileDirectoryInformation
Source§impl QueryDirectoryInfoValue for FileDirectoryInformation
impl QueryDirectoryInfoValue for FileDirectoryInformation
const CLASS_ID: QueryDirectoryInfoClass = QueryDirectoryInfoClass::DirectoryInformation
Source§impl TryFrom<QueryDirectoryInfo> for FileDirectoryInformation
impl TryFrom<QueryDirectoryInfo> for FileDirectoryInformation
Source§type Error = SmbFsccError
type Error = SmbFsccError
The type returned in the event of a conversion error.
impl Eq for FileDirectoryInformation
impl StructuralPartialEq for FileDirectoryInformation
Auto Trait Implementations§
impl Freeze for FileDirectoryInformation
impl RefUnwindSafe for FileDirectoryInformation
impl Send for FileDirectoryInformation
impl Sync for FileDirectoryInformation
impl Unpin for FileDirectoryInformation
impl UnwindSafe for FileDirectoryInformation
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