pub enum M2dirArg {
Pid(u32),
Random(Vec<u8>),
FileExists(BTreeMap<M2dirPath, bool>),
DirRead(BTreeMap<M2dirPath, BTreeSet<M2dirPath>>),
DirCreate,
DirRemove,
FileRead(BTreeMap<M2dirPath, Vec<u8>>),
FileCreate,
FileRemove,
Rename,
}Expand description
Reply fed back into M2dirCoroutine::resume by the driver.
Each variant matches the corresponding M2dirYield request and carries
the value the driver gathered while servicing it.
Variants§
Pid(u32)
Reply to M2dirYield::WantsPid.
Random(Vec<u8>)
Reply to M2dirYield::WantsRandom.
FileExists(BTreeMap<M2dirPath, bool>)
Reply to M2dirYield::WantsFileExists: probed path to whether it
exists as a regular file.
DirRead(BTreeMap<M2dirPath, BTreeSet<M2dirPath>>)
Reply to M2dirYield::WantsDirRead: probed directory to the set of
paths found inside.
DirCreate
Reply to M2dirYield::WantsDirCreate.
DirRemove
Reply to M2dirYield::WantsDirRemove.
FileRead(BTreeMap<M2dirPath, Vec<u8>>)
Reply to M2dirYield::WantsFileRead: probed file to its bytes (or an
empty buffer when the file is missing).
FileCreate
Reply to M2dirYield::WantsFileCreate.
FileRemove
Reply to M2dirYield::WantsFileRemove.
Rename
Reply to M2dirYield::WantsRename.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for M2dirArg
impl RefUnwindSafe for M2dirArg
impl Send for M2dirArg
impl Sync for M2dirArg
impl Unpin for M2dirArg
impl UnsafeUnpin for M2dirArg
impl UnwindSafe for M2dirArg
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