[−][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())