pub struct SimpleDirectoryMutator {
pub directory: Arc<SimpleDirectory>,
/* private fields */
}Fields§
§directory: Arc<SimpleDirectory>Implementations§
Source§impl SimpleDirectoryMutator
impl SimpleDirectoryMutator
pub fn new(fs: FileSystemHandle, directory: Arc<SimpleDirectory>) -> Self
pub fn node(&self, name: FsString, node: FsNodeHandle)
pub fn entry( &self, name: &str, ops: impl Into<Box<dyn FsNodeOps>>, mode: FileMode, )
pub fn entry_etc( &self, name: FsString, ops: impl Into<Box<dyn FsNodeOps>>, mode: FileMode, dev: DeviceType, creds: FsCred, )
pub fn symlink(&self, name: &FsStr, target: &FsStr)
pub fn subdir(&self, name: &str, mode: u32, build_subdir: impl FnOnce(&Self))
pub fn subdir2(&self, name: &FsStr, mode: u32, build_subdir: impl FnOnce(&Self))
pub fn remove(&self, name: &FsStr)
Auto Trait Implementations§
impl Freeze for SimpleDirectoryMutator
impl !RefUnwindSafe for SimpleDirectoryMutator
impl Send for SimpleDirectoryMutator
impl Sync for SimpleDirectoryMutator
impl Unpin for SimpleDirectoryMutator
impl UnsafeUnpin for SimpleDirectoryMutator
impl !UnwindSafe for SimpleDirectoryMutator
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.