Struct wasmer_wasi_asml_fork::Stdin [−][src]
pub struct Stdin;
Expand description
A wrapper type around Stdin that implements WasiFile
and
Serialize
+ Deserialize
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Creates a “by reference” adapter for this instance of Read
. Read more
Creates an adapter which will chain this stream with another. Read more
the last time the file was accessed in nanoseconds as a UNIX timestamp
the last time the file was modified in nanoseconds as a UNIX timestamp
the time at which the file was created in nanoseconds as a UNIX timestamp
Change the size of the file, if the new_size
is greater than the current size
the extra bytes will be allocated and zeroed Read more
Request deletion of the file
Returns the number of bytes available. This function must not block
Used for polling. Default returns None
because this method cannot be implemented for most types
Returns the underlying host fd Read more
set the last time the file was accessed in nanoseconds as a UNIX timestamp
set the last time the file was modified in nanoseconds as a UNIX timestamp
set the time at which the file was created in nanoseconds as a UNIX timestamp
Store file contents and metadata to disk
Default implementation returns Ok(())
. You should implement this method if you care
about flushing your cache to permanent storage Read more
Moves the file to a new location NOTE: the signature of this function will change before stabilization Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Attempts to write an entire buffer into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Stdin
impl UnwindSafe for Stdin
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more