pub struct OpenOptions<'a, C>{ /* private fields */ }Expand description
std::fs::OpenOptions-style builder for any Vfsi client.
Implementations§
Source§impl<'a, C> OpenOptions<'a, C>
impl<'a, C> OpenOptions<'a, C>
pub fn read(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn write(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn append(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn truncate(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn create(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn create_new(&mut self, enabled: bool) -> &mut OpenOptions<'a, C>
pub fn mode(&mut self, mode: u32) -> &mut OpenOptions<'a, C>
pub fn open(&self, path: impl AsRef<Path>) -> Result<<C as Vfsi>::File, VfError>
Trait Implementations§
Source§impl<C> Clone for OpenOptions<'_, C>
impl<C> Clone for OpenOptions<'_, C>
Source§fn clone(&self) -> OpenOptions<'_, C>
fn clone(&self) -> OpenOptions<'_, C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, C> Freeze for OpenOptions<'a, C>
impl<'a, C> RefUnwindSafe for OpenOptions<'a, C>
impl<'a, C> Send for OpenOptions<'a, C>
impl<'a, C> Sync for OpenOptions<'a, C>
impl<'a, C> Unpin for OpenOptions<'a, C>
impl<'a, C> UnsafeUnpin for OpenOptions<'a, C>
impl<'a, C> UnwindSafe for OpenOptions<'a, C>
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