pub enum VfsNodeKind {
File,
Dir,
Ctl,
Stream,
Query,
}Expand description
The 9P/VFS node kind a generated method projects to (epic #539).
Mirrors the VfsNodeKind capnp enum. File/Dir/Query are read-only
(side-effect-free 9P reads); Ctl is a write-a-verb control file; Stream
is a /stream-style pipe.
Variants§
File
Readable (maybe writable) leaf; read renders the method’s response.
Dir
Directory; readdir lists child entries (e.g. a list method).
Ctl
Write-a-verb control file; a write invokes the method.
Stream
/stream-style pipe (data/info/ctl) for a streaming method.
Query
Synthetic query file: write a spec, read the result.
Implementations§
Source§impl VfsNodeKind
impl VfsNodeKind
Sourcepub fn is_read_only(self) -> bool
pub fn is_read_only(self) -> bool
Whether a read of this node must be side-effect-free (9P read invariant).
File/Dir/Query are read surfaces; Ctl/Stream mutate/produce.
Trait Implementations§
Source§impl Clone for VfsNodeKind
impl Clone for VfsNodeKind
Source§fn clone(&self) -> VfsNodeKind
fn clone(&self) -> VfsNodeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VfsNodeKind
impl Debug for VfsNodeKind
Source§impl PartialEq for VfsNodeKind
impl PartialEq for VfsNodeKind
Source§fn eq(&self, other: &VfsNodeKind) -> bool
fn eq(&self, other: &VfsNodeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VfsNodeKind
impl Eq for VfsNodeKind
impl StructuralPartialEq for VfsNodeKind
Auto Trait Implementations§
impl Freeze for VfsNodeKind
impl RefUnwindSafe for VfsNodeKind
impl Send for VfsNodeKind
impl Sync for VfsNodeKind
impl Unpin for VfsNodeKind
impl UnsafeUnpin for VfsNodeKind
impl UnwindSafe for VfsNodeKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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>
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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more