[−][src]Trait in_stream::InStreamListener
implement this trait to provide listening/server socket type functionality
Associated Types
Loading content...Required methods
fn raw_bind<C: InStreamConfig>(url: &Url2, config: C) -> Result<Self>
begin listening on the given url spec this function does the actual work of binding, but it is recommended your struct provide a wrapper with a concrete config type
fn binding(&self) -> Url2
access the url for the bound interface
fn accept(&mut self) -> Result<Self::Stream>
attempt to accept a stream/socket from this binding may return Err(ErrorKind::WouldBlock.into())
Implementors
impl<'_, '_> InStreamListener<&'_ mut [u8], &'_ [u8]> for InStreamListenerMem
[src]
type Stream = InStreamMem
fn raw_bind<C: InStreamConfig>(url: &Url2, config: C) -> Result<Self>
[src]
fn binding(&self) -> Url2
[src]
fn accept(&mut self) -> Result<Self::Stream>
[src]
impl<'_, '_> InStreamListener<&'_ mut [u8], &'_ [u8]> for InStreamListenerTcp
[src]
type Stream = InStreamTcp
fn raw_bind<C: InStreamConfig>(url: &Url2, config: C) -> Result<Self>
[src]
fn binding(&self) -> Url2
[src]
fn accept(&mut self) -> Result<Self::Stream>
[src]
impl<'_, '_, Sub: InStreamListenerStd> InStreamListener<&'_ mut [u8], &'_ [u8]> for InStreamListenerTls<Sub>
[src]
type Stream = InStreamTls<Sub::StreamStd>
fn raw_bind<C: InStreamConfig>(url: &Url2, config: C) -> Result<Self>
[src]
fn binding(&self) -> Url2
[src]
get our bound address
fn accept(&mut self) -> Result<Self::Stream>
[src]
accept an incoming connection