pub struct Listener {
pub typ: ListenerType,
pub cfg: Arc<Builder>,
/* private fields */
}
Expand description
Server configuration and listener management Network listener for accepting client connections
Fields§
§typ: ListenerType
Active listener protocol type
cfg: Arc<Builder>
Shared server configuration
Implementations§
Source§impl Listener
§Examples
let builder = Builder::new();
let listener = builder.bind()?;
impl Listener
§Examples
let builder = Builder::new();
let listener = builder.bind()?;
pub fn local_addr(&self) -> Result<SocketAddr>
Auto Trait Implementations§
impl !Freeze for Listener
impl !RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl !UnwindSafe for Listener
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