pub enum VdirReply {
Random(Vec<u8>),
FileExists(BTreeMap<VdirPath, bool>),
DirExists(BTreeMap<VdirPath, bool>),
DirRead(BTreeMap<VdirPath, BTreeSet<VdirPath>>),
FileRead(BTreeMap<VdirPath, Vec<u8>>),
FileCreate,
DirCreate,
DirRemove,
FileRemove,
Rename,
Copy,
}Expand description
Reply fed back into VdirCoroutine::resume by the driver.
One variant per VdirYield request; the coroutine asserts the
variant it expects and ignores the rest.
Variants§
Random(Vec<u8>)
Reply to VdirYield::WantsRandom.
FileExists(BTreeMap<VdirPath, bool>)
Reply to VdirYield::WantsFileExists.
DirExists(BTreeMap<VdirPath, bool>)
Reply to VdirYield::WantsDirExists.
DirRead(BTreeMap<VdirPath, BTreeSet<VdirPath>>)
Reply to VdirYield::WantsDirRead.
FileRead(BTreeMap<VdirPath, Vec<u8>>)
Reply to VdirYield::WantsFileRead.
FileCreate
Acknowledgement of VdirYield::WantsFileCreate.
DirCreate
Acknowledgement of VdirYield::WantsDirCreate.
DirRemove
Acknowledgement of VdirYield::WantsDirRemove.
FileRemove
Acknowledgement of VdirYield::WantsFileRemove.
Rename
Acknowledgement of VdirYield::WantsRename.
Copy
Acknowledgement of VdirYield::WantsCopy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VdirReply
impl RefUnwindSafe for VdirReply
impl Send for VdirReply
impl Sync for VdirReply
impl Unpin for VdirReply
impl UnsafeUnpin for VdirReply
impl UnwindSafe for VdirReply
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