pub enum SetOp {
Disposition {
delete: bool,
},
Allocation(u64),
EndOfFile(u64),
Basic {
access: Option<FileTime>,
write: Option<FileTime>,
},
Rename {
replace_if_exists: bool,
name: String,
},
Ea {
name: String,
value: Vec<u8>,
},
}Expand description
Neutralised set-information operations. Dialect layers translate their
wire levels into these before calling [Vfs::set_info].
Variants§
Disposition
Mark the object for deletion (FILE_DISPOSITION_INFORMATION).
Allocation(u64)
Set allocation size.
EndOfFile(u64)
Set end-of-file (truncate/extend).
Basic
Update timestamps; None fields are left untouched
(FILE_BASIC_INFORMATION).
Fields
Rename
Rename the target to name relative to the share root.
Fields
Ea
Set a single extended attribute (FILE_FULL_EA_INFORMATION).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetOp
impl RefUnwindSafe for SetOp
impl Send for SetOp
impl Sync for SetOp
impl Unpin for SetOp
impl UnsafeUnpin for SetOp
impl UnwindSafe for SetOp
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