[][src]Struct deno_cli::resources::Resource

pub struct Resource {
    pub rid: ResourceId,
}

Fields

rid: ResourceId

Methods

impl Resource[src]

pub fn poll_accept(&mut self) -> Poll<(TcpStream, SocketAddr), Error>[src]

pub fn poll_accept_tls(
    &mut self,
    tcp_stream: TcpStream
) -> impl Future<Item = ServerTlsStream<TcpStream>, Error = Error>
[src]

pub fn track_task(&mut self) -> Result<(), Error>[src]

Track the current task (for TcpListener resource). Throws an error if another task is already tracked.

pub fn untrack_task(&mut self)[src]

Stop tracking a task (for TcpListener resource). Happens when the task is done and thus no further tracking is needed.

pub fn close(&self)[src]

pub fn shutdown(&mut self, how: Shutdown) -> Result<(), ErrBox>[src]

Trait Implementations

impl DenoAsyncRead for Resource[src]

impl DenoAsyncWrite for Resource[src]

impl Clone for Resource[src]

impl Debug for Resource[src]

impl Read for Resource[src]

impl Write for Resource[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T, F> ComparatorFunction<Option<T>> for F where
    F: ComparatorFunction<T>, 
[src]