jetstream::prelude::p9::messages

Struct Qid

pub struct Qid {
    pub ty: u8,
    pub version: u32,
    pub path: u64,
}

Qid

Fields

ty: u8``version: u32``path: u64

Trait Implementations

impl Clone for Qid

fn clone(&self) -> Qid

Returns a copy of the value. Read more1.0.0 ·

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for Qid

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

Formats the value using the given formatter. Read more

impl From for Qid

fn from(st: stat64) -> Qid

Converts to this type from the input type.

impl Hash for Qid

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more1.3.0 ·

fn hash_slice(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more

impl PartialEq for Qid

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

Tests for self and other values to be equal, and is used by ==.1.0.0 ·

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

impl WireFormat for Qid

fn byte_size(&self) -> u32

Returns the number of bytes necessary to fully encode self.

fn encode(&self, _writer: &mut W) -> Result<(), Error>where W: Write,

Encodes self into writer.

fn decode(_reader: &mut R) -> Result<Qid, Error>where R: Read,

Decodes Self from reader.

impl Copy for Qid

impl Eq for Qid

impl StructuralPartialEq for Qid

Auto Trait Implementations

impl Freeze for Qid

impl RefUnwindSafe for Qid

impl Send for Qid

impl Sync for Qid

impl Unpin for Qid

impl UnwindSafe for Qid

Blanket Implementations

impl Any for Twhere T: 'static + ?Sized,

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more

impl AsyncWireFormatExt for Twhere T: WireFormat + Send,

fn encode_async(self, writer: W) -> impl Future<Output = Result<(), Error>>where Self: Sync, W: AsyncWrite + Unpin + Send,

Encodes the object asynchronously into the provided writer. Read more

fn decode_async( reader: R, ) -> impl Future<Output = Result<Self, Error>> + Sendwhere Self: Sync, R: AsyncRead + Unpin + Send,

Decodes an object asynchronously from the provided reader. Read more

impl Borrow for Twhere T: ?Sized,

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

impl BorrowMut for Twhere T: ?Sized,

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

Mutably borrows from an owned value. Read more

impl CloneToUninit for Twhere T: Clone,

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)Performs copy-assignment from self to dst. Read more

impl ConvertWireFormat for Twhere T: WireFormat,

fn to_bytes(&self) -> Bytes

Converts the type to bytes. Returns a Bytes object containing the encoded bytes.

fn from_bytes(buf: &Bytes) -> Result<T, Error>

Converts bytes to the type. Returns a Result containing the decoded type or an std::io::Error if decoding fails.

fn as_bytes(&self) -> Vec

AsRef for the type. Read more

impl From for T

fn from(t: T) -> T

Returns the argument unchanged.

impl FromContext for Twhere T: WireFormat,

fn from_context(ctx: Context) -> T

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

fn into(self) -> U

Calls U::from(self).

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

impl ToOwned for Twhere T: Clone,

type Owned = T

The resulting type after obtaining ownership.

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more

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

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

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

type Error = <U as TryFrom>::Error

The type returned in the event of a conversion error.

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

Performs the conversion.