Struct Tread
pub struct Tread {
pub fid: u32,
pub offset: u64,
pub count: u32,
}
Expand description
read – read data from a file
size[4] Tread tag[2] fid[4] offset[8] count[4]
size[4] Rread tag[2] count[4] data[count]
read performs I/O on the file represented by fid.
Under 9P2000.L, read cannot be used on directories. See Treaddir for reading directories.
See the Plan 9 manual page for read(5).
Formats the value using the given formatter.
Read more
Returns the number of bytes necessary to fully encode self
.
Encodes self
into writer
.
Decodes Self
from reader
.
Encodes the object asynchronously into the provided writer.
Read more
Decodes an object asynchronously from the provided reader.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Applies the [
Compat
] adapter by value.
Read more
Applies the [
Compat
] adapter by shared reference.
Read more
Applies the [
Compat
] adapter by mutable reference.
Read more
Converts the type to bytes.
Returns a Bytes
object containing the encoded bytes.
Converts bytes to the type.
Returns a Result
containing the decoded type or an std::io::Error
if decoding fails.
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
Create a new
Policy
that returns [
Action::Follow
] only if
self
and
other
return
Action::Follow
.
Read more
Create a new
Policy
that returns [
Action::Follow
] if either
self
or
other
returns
Action::Follow
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.