pub enum FileData {
Buffer(Vec<u8>),
Path(PathBuf),
}Available on crate features
sync and write only.Expand description
File data for modification operations.
Variants§
Buffer(Vec<u8>)
In-memory buffer.
Path(PathBuf)
Available on crate feature
std only.Path to a file on the filesystem.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileData
impl RefUnwindSafe for FileData
impl Send for FileData
impl Sync for FileData
impl Unpin for FileData
impl UnsafeUnpin for FileData
impl UnwindSafe for FileData
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