pub struct UnixPrivateFs;Implementations§
Source§impl UnixPrivateFs
impl UnixPrivateFs
Trait Implementations§
Source§impl Clone for UnixPrivateFs
impl Clone for UnixPrivateFs
Source§fn clone(&self) -> UnixPrivateFs
fn clone(&self) -> UnixPrivateFs
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 moreimpl Copy for UnixPrivateFs
Source§impl Debug for UnixPrivateFs
impl Debug for UnixPrivateFs
Source§impl Default for UnixPrivateFs
impl Default for UnixPrivateFs
Source§fn default() -> UnixPrivateFs
fn default() -> UnixPrivateFs
Returns the “default value” for a type. Read more
Source§impl PrivateFs for UnixPrivateFs
impl PrivateFs for UnixPrivateFs
Source§fn create_dir(&self, path: &Path) -> Result<()>
fn create_dir(&self, path: &Path) -> Result<()>
Create a directory readable only by the current user. Succeeds quietly
if it already exists and already excludes everyone else; otherwise
it tightens, because an inherited-permissions directory is the exact
case
harden_existing exists for.Source§fn create_file_new(&self, path: &Path, writes: Writes) -> Result<File>
fn create_file_new(&self, path: &Path, writes: Writes) -> Result<File>
Create and open a new private file. Fails if
path exists.Source§fn create_file_truncate(&self, path: &Path) -> Result<File>
fn create_file_truncate(&self, path: &Path) -> Result<File>
Create a private file, truncating one that already exists. Read more
Source§fn harden_existing(&self, path: &Path) -> Result<()>
fn harden_existing(&self, path: &Path) -> Result<()>
Tighten an object that already exists. The one place a create-then-set
window is unavoidable, so it is a named operation rather than the
default path.
Source§fn effective_access(&self, path: &Path) -> Result<EffectiveAccess>
fn effective_access(&self, path: &Path) -> Result<EffectiveAccess>
What the OS actually grants, read back from the object.
impl Sealed for UnixPrivateFs
Auto Trait Implementations§
impl Freeze for UnixPrivateFs
impl RefUnwindSafe for UnixPrivateFs
impl Send for UnixPrivateFs
impl Sync for UnixPrivateFs
impl Unpin for UnixPrivateFs
impl UnsafeUnpin for UnixPrivateFs
impl UnwindSafe for UnixPrivateFs
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