pub struct FPMoveAndRename {
pub volume_id: u16,
pub src_directory_id: u32,
pub dst_directory_id: u32,
pub src_path_type: PathType,
pub src_path: MacString,
pub dst_path_type: PathType,
pub dst_path: MacString,
pub new_name_path_type: PathType,
pub new_name: MacString,
}Expand description
FPMoveAndRename: atomically moves and/or renames a file or directory.
Wire layout (from buf[2..] — after command byte and pad): [0..2] VolumeID [2..6] SourceDirectoryID [6..10] DestinationDirectoryID [10] SourcePathType [11..] SourcePath (Pascal string) [11+src_len] DestinationPathType [11+src_len+1..] DestinationPath (Pascal string) [after dst] NewNamePathType [after dst+1] NewName (Pascal string — zero-length means keep original name)
Fields§
§volume_id: u16§src_directory_id: u32§dst_directory_id: u32§src_path_type: PathType§src_path: MacString§dst_path_type: PathType§dst_path: MacString§new_name_path_type: PathType§new_name: MacStringNew name for the object. Empty string means keep the original name.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FPMoveAndRename
impl RefUnwindSafe for FPMoveAndRename
impl Send for FPMoveAndRename
impl Sync for FPMoveAndRename
impl Unpin for FPMoveAndRename
impl UnsafeUnpin for FPMoveAndRename
impl UnwindSafe for FPMoveAndRename
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