Type Definition deno_simple_runtime::ops::io::ChildStdinResource
source · [−]pub type ChildStdinResource = WriteOnlyResource<ChildStdin>;
Trait Implementations
sourceimpl Resource for ChildStdinResource
impl Resource for ChildStdinResource
sourcefn name(&self) -> Cow<'_, str>
fn name(&self) -> Cow<'_, str>
Returns a string representation of the resource which is made available
to JavaScript code through op_resources
. The default implementation
returns the Rust type name, but specific resource types may override this
trait method. Read more
sourcefn write(self: Rc<Self>, buf: ZeroCopyBuf) -> AsyncResult<usize>
fn write(self: Rc<Self>, buf: ZeroCopyBuf) -> AsyncResult<usize>
Resources may implement write()
to be a writable stream
sourcefn shutdown(self: Rc<Self>) -> AsyncResult<()>
fn shutdown(self: Rc<Self>) -> AsyncResult<()>
Resources may implement shutdown()
for graceful async shutdowns
sourcefn read(
self: Rc<Self>,
buf: ZeroCopyBuf
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'static, Global>>
fn read(
self: Rc<Self>,
buf: ZeroCopyBuf
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'static, Global>>
Resources may implement read()
to be a readable stream