pub struct FileLinkInformation {
pub replace_if_exists: Boolean,
pub file_name: SizedWideString,
}Expand description
Create a hard link to an existing file via the SMB Version 2 Protocol, as specified in [MS-SMB2].
WARNING: This operation is currently unstable and untested, and may lead to data loss or corruption if used improperly!
MS-FSCC 2.4.8.2 - FileLinkInformation for SMB2 protocol
Fields§
§replace_if_exists: BooleanSet to TRUE to indicate that if a file with the given name already exists, it should be replaced with the given file. Set to FALSE if the link operation should fail if a file with the given name already exists.
file_name: SizedWideStringThe name to be assigned to the newly created link.
Trait Implementations§
Source§impl BinRead for FileLinkInformation
impl BinRead for FileLinkInformation
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 FileLinkInformation
impl BinWrite for FileLinkInformation
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 FileLinkInformation
impl Debug for FileLinkInformation
Source§impl From<FileLinkInformation> for SetFileInfo
impl From<FileLinkInformation> for SetFileInfo
Source§fn from(value: FileLinkInformation) -> SetFileInfo
fn from(value: FileLinkInformation) -> SetFileInfo
Converts to this type from the input type.
Source§impl PartialEq for FileLinkInformation
impl PartialEq for FileLinkInformation
Source§impl SetFileInfoValue for FileLinkInformation
impl SetFileInfoValue for FileLinkInformation
const CLASS_ID: SetFileInfoClass = SetFileInfoClass::LinkInformation
Source§impl TryFrom<SetFileInfo> for FileLinkInformation
impl TryFrom<SetFileInfo> for FileLinkInformation
Source§type Error = SmbFsccError
type Error = SmbFsccError
The type returned in the event of a conversion error.
impl Eq for FileLinkInformation
impl StructuralPartialEq for FileLinkInformation
Auto Trait Implementations§
impl Freeze for FileLinkInformation
impl RefUnwindSafe for FileLinkInformation
impl Send for FileLinkInformation
impl Sync for FileLinkInformation
impl Unpin for FileLinkInformation
impl UnwindSafe for FileLinkInformation
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