jetstream_9p::messages

Struct Rgetattr

pub struct Rgetattr {
    pub valid: u64,
    pub qid: Qid,
    pub mode: u32,
    pub uid: u32,
    pub gid: u32,
    pub nlink: u64,
    pub rdev: u64,
    pub size: u64,
    pub blksize: u64,
    pub blocks: u64,
    pub atime_sec: u64,
    pub atime_nsec: u64,
    pub mtime_sec: u64,
    pub mtime_nsec: u64,
    pub ctime_sec: u64,
    pub ctime_nsec: u64,
    pub btime_sec: u64,
    pub btime_nsec: u64,
    pub gen: u64,
    pub data_version: u64,
}

Fields

valid: u64``qid: Qid``mode: u32``uid: u32``gid: u32``nlink: u64``rdev: u64``size: u64``blksize: u64``blocks: u64``atime_sec: u64``atime_nsec: u64``mtime_sec: u64``mtime_nsec: u64``ctime_sec: u64``ctime_nsec: u64``btime_sec: u64``btime_nsec: u64``gen: u64``data_version: u64

Trait Implementations

impl Debug for Rgetattr

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

Formats the value using the given formatter. Read more

impl WireFormat for Rgetattr

fn byte_size(&self) -> u32

Returns the number of bytes necessary to fully encode self.

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

Encodes self into writer.

fn decode<R: Read>(_reader: &mut R) -> Result

Decodes Self from reader.

Auto Trait Implementations

impl Freeze for Rgetattr

impl RefUnwindSafe for Rgetattr

impl Send for Rgetattr

impl Sync for Rgetattr

impl Unpin for Rgetattr

impl UnwindSafe for Rgetattr

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 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<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.