pub struct LocalSocketListener { /* private fields */ }
Available on crate feature
tokio_support
only.Expand description
Implementations§
Source§impl LocalSocketListener
impl LocalSocketListener
Sourcepub fn bind<'a>(name: impl ToLocalSocketName<'a>) -> Result<Self>
pub fn bind<'a>(name: impl ToLocalSocketName<'a>) -> Result<Self>
Creates a socket server with the specified local socket name.
Sourcepub async fn accept(&self) -> Result<LocalSocketStream>
pub async fn accept(&self) -> Result<LocalSocketStream>
Listens for incoming connections to the socket, asynchronously waiting until a client is connected.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LocalSocketListener
impl RefUnwindSafe for LocalSocketListener
impl Send for LocalSocketListener
impl Sync for LocalSocketListener
impl Unpin for LocalSocketListener
impl UnwindSafe for LocalSocketListener
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