Type Definition deno_net::io::UnixStreamResource
source · [−]pub type UnixStreamResource = FullDuplexResource<OwnedReadHalf, OwnedWriteHalf>;
Trait Implementations
sourceimpl Resource for UnixStreamResource
impl Resource for UnixStreamResource
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
fn read_return(
self: Rc<Self>,
buf: ZeroCopyBuf
) -> AsyncResult<(usize, ZeroCopyBuf)>
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