pub struct WalkResult {
pub qids: Vec<Qid>,
pub reached: Vec<String>,
}Expand description
Result of a walk: the qid of the resolved path and, for directories, the
qids of each intermediate component. For a single-component walk (the
common case for this translator) qids holds exactly the leaf qid.
Fields§
§qids: Vec<Qid>Qids for each path component successfully walked (length matches the number of components traversed; the client treats a short list as “walk stopped early”).
reached: Vec<String>Exact request-component prefix to which newfid is bound. For a
non-empty walk this has the same length as qids; a short prefix is a
9P partial walk. Backends must report their actual binding here rather
than inferring it from the number of leaf qids they happen to return.
The translator rejects a result that is not a prefix of its request or whose QID count disagrees with this prefix, so a backend cannot bind a deeper object while making the monitor cache a shallower name.
Trait Implementations§
Source§impl Clone for WalkResult
impl Clone for WalkResult
Source§fn clone(&self) -> WalkResult
fn clone(&self) -> WalkResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for WalkResult
impl RefUnwindSafe for WalkResult
impl Send for WalkResult
impl Sync for WalkResult
impl Unpin for WalkResult
impl UnsafeUnpin for WalkResult
impl UnwindSafe for WalkResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<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>
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>
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 more