Skip to main content

R

Enum R 

Source
pub enum R {
Show 15 variants Unknown(Type, Tag, Vec<u8>), Version(Tag, u32, Version), Auth(Tag, Qid), Attach(Tag, Qid), Error(Tag, String, u32), Flush(Tag), Walk(Tag, Vec<Qid>), Open(Tag, Qid, u32), Create(Tag, Qid, u32), Read(Tag, Vec<u8>), Write(Tag, u32), Clunk(Tag), Remove(Tag), Stat(Tag, Stat), WStat(Tag),
}
Expand description

R messages are Server-to-Client messages.

Variants§

§

Unknown(Type, Tag, Vec<u8>)

Unknown is constructed when the Type is unknown or unexpected.

§

Version(Tag, u32, Version)

RVersion is part of the negotiation of the connection.

§

Auth(Tag, Qid)

Open authentication file.

§

Attach(Tag, Qid)

Attach to a filesystem tree.

§

Error(Tag, String, u32)

Something went wrong. What went wrong?

§

Flush(Tag)

The command by this Tag has been flushed from the queue.

§

Walk(Tag, Vec<Qid>)

Walk the filesystem to a specific File, returning Qids for everything along the path.

§

Open(Tag, Qid, u32)

Confirmation that a specific file has been Opened.

§

Create(Tag, Qid, u32)

Confirmation that a specific file has been Created.

§

Read(Tag, Vec<u8>)

Data that was read in response to a Tag

§

Write(Tag, u32)

Data was confirmed to have been written.

§

Clunk(Tag)

File descriptor has been clunked (closed).

§

Remove(Tag)

File was removed.

§

Stat(Tag, Stat)

Information about a File

§

WStat(Tag)

Information about a File

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Dehydrate for R

Source§

type Error = RError

Error to be returned during Dehydrate routines.
Source§

fn dehydrate(&self, b: &mut Cursor<Vec<u8>>) -> Result<(), RError>

Write bytes from the Cursor to create a new object.
Source§

impl<T> Hydrate<T> for R
where T: AsRef<[u8]>,

Source§

type Error = RError

Error to be returned during Hydrate routines.
Source§

fn hydrate(b: &mut Cursor<T>) -> Result<Self, RError>

Read bytes from the Cursor to create a new object.
Source§

impl PartialEq for R

Source§

fn eq(&self, other: &R) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for R

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnsafeUnpin for R

§

impl UnwindSafe for R

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more