pub struct OpenOptions<'a, F: FileSystem> { /* private fields */ }Expand description
std::fs::OpenOptions-style builder tied to an FsClient.
Implementations§
Source§impl<'a, F: FileSystem> OpenOptions<'a, F>
impl<'a, F: FileSystem> OpenOptions<'a, F>
pub fn read(&mut self, enabled: bool) -> &mut Self
pub fn write(&mut self, enabled: bool) -> &mut Self
pub fn append(&mut self, enabled: bool) -> &mut Self
pub fn truncate(&mut self, enabled: bool) -> &mut Self
pub fn create(&mut self, enabled: bool) -> &mut Self
pub fn create_new(&mut self, enabled: bool) -> &mut Self
pub fn mode(&mut self, mode: u32) -> &mut Self
pub fn open(&self, path: impl AsRef<Path>) -> VfResult<FsFile<F>>
Trait Implementations§
Source§impl<F: FileSystem> Clone for OpenOptions<'_, F>
impl<F: FileSystem> Clone for OpenOptions<'_, F>
Auto Trait Implementations§
impl<'a, F> Freeze for OpenOptions<'a, F>
impl<'a, F> RefUnwindSafe for OpenOptions<'a, F>where
&'a FsClient<F>: RefUnwindSafe,
impl<'a, F> Send for OpenOptions<'a, F>
impl<'a, F> Sync for OpenOptions<'a, F>
impl<'a, F> Unpin for OpenOptions<'a, F>
impl<'a, F> UnsafeUnpin for OpenOptions<'a, F>where
&'a FsClient<F>: UnsafeUnpin,
impl<'a, F> UnwindSafe for OpenOptions<'a, F>where
&'a FsClient<F>: UnwindSafe,
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