Enum deno_net::raw::NetworkStreamListener
source · pub enum NetworkStreamListener {
Tcp(TcpListener),
Tls(TcpListener, Arc<ServerConfig>),
Unix(UnixListener),
}
Expand description
A raw stream listener of one of the types handled by this extension.
Variants§
Implementations§
source§impl NetworkStreamListener
impl NetworkStreamListener
sourcepub async fn accept(&self) -> Result<NetworkStream, Error>
pub async fn accept(&self) -> Result<NetworkStream, Error>
Accepts a connection on this listener.
pub fn listen_address(&self) -> Result<NetworkStreamAddress, Error>
pub fn stream(&self) -> NetworkStreamType
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkStreamListener
impl Send for NetworkStreamListener
impl Sync for NetworkStreamListener
impl Unpin for NetworkStreamListener
impl !UnwindSafe for NetworkStreamListener
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more