#[non_exhaustive]pub enum LocalListener {
Unix(UnixListener),
}Available on crate feature
local only.Expand description
A local IPC listener: a Unix domain socket (a Windows named pipe from 0.5.0).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl LocalListener
impl LocalListener
Sourcepub fn accept(&self) -> Result<(LocalConnection, ConnectionInfo), NetError>
pub fn accept(&self) -> Result<(LocalConnection, ConnectionInfo), NetError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LocalListener
impl RefUnwindSafe for LocalListener
impl Send for LocalListener
impl Sync for LocalListener
impl Unpin for LocalListener
impl UnsafeUnpin for LocalListener
impl UnwindSafe for LocalListener
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