pub struct OpenOp { /* private fields */ }Expand description
One complete open request. This replaces three error-prone parallel slices of paths, flags, and modes.
Implementations§
Source§impl OpenOp
impl OpenOp
pub fn path(&self) -> &Path
Sourcepub fn into_path(self) -> PathBuf
pub fn into_path(self) -> PathBuf
Consume the request and transfer its path without cloning storage.
pub const fn flags(&self) -> OpenFlags
Sourcepub const fn creation_mode(&self) -> u32
pub const fn creation_mode(&self) -> u32
Requested creation permissions, before applying the backend’s umask.
pub fn new(path: impl Into<PathBuf>, flags: OpenFlags) -> OpenOp
pub fn mode(self, mode: u32) -> OpenOp
Trait Implementations§
impl Eq for OpenOp
impl StructuralPartialEq for OpenOp
Auto Trait Implementations§
impl Freeze for OpenOp
impl RefUnwindSafe for OpenOp
impl Send for OpenOp
impl Sync for OpenOp
impl Unpin for OpenOp
impl UnsafeUnpin for OpenOp
impl UnwindSafe for OpenOp
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