pub struct FPCopyFile {
pub src_volume_id: u16,
pub src_directory_id: u32,
pub dst_volume_id: u16,
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
FPCopyFile: server-side copy of a file’s data and resource forks into a destination directory.
Wire layout (from buf[2..] — after command byte and pad): [0..2] SrcVolumeID [2..6] SrcDirectoryID [6..8] DstVolumeID [8..12] DstDirectoryID [12] SrcPathType [13..] SrcPath (Pascal string) [after src] DstPathType [after src+1..] DstPath (Pascal string — the destination directory path, may be empty) [after dst] NewNamePathType [after dst+1..] NewName (Pascal string — empty means keep source name)
Fields§
§src_volume_id: u16§src_directory_id: u32§dst_volume_id: u16§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 copy. Empty means keep the source file name.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FPCopyFile
impl RefUnwindSafe for FPCopyFile
impl Send for FPCopyFile
impl Sync for FPCopyFile
impl Unpin for FPCopyFile
impl UnsafeUnpin for FPCopyFile
impl UnwindSafe for FPCopyFile
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