pub enum Answer {
Kind(Option<FileKind>),
Confined(bool),
Bytes(Vec<u8>),
Entries(Vec<DirEntry>),
Unavailable {
detail: String,
},
}Expand description
The caller’s reply to the pending Question.
Variants§
Kind(Option<FileKind>)
Reply to Question::Kind; None means the path does not exist.
Confined(bool)
Reply to Question::Confined.
Bytes(Vec<u8>)
Reply to Question::Read.
Entries(Vec<DirEntry>)
Reply to Question::List.
Reply to any question the source could not answer. The loader applies the narrowest failure boundary the spec allows for that question.
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.