pub struct UnixListener<C> {
    inner: UnixListener,
    config: UnixConfig,
    codec: C,
}Fields§
§inner: UnixListener§config: UnixConfig§codec: CImplementations§
Source§impl<C> UnixListener<C>
 
impl<C> UnixListener<C>
pub fn new(listener: AsyncUnixListener, config: UnixConfig, codec: C) -> Self
Trait Implementations§
Source§impl<C, E> ConnListener for UnixListener<C>
 
impl<C, E> ConnListener for UnixListener<C>
type Message = <C as Codec>::Message
type Error = E
fn local_endpoint(&self) -> Result<Endpoint, Self::Error>
fn accept<'life0, 'async_trait>(
    &'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Conn<C::Message, E>, Self::Error>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Source§impl<C, E> From<UnixListener<C>> for Listener<C::Message, E>
 
impl<C, E> From<UnixListener<C>> for Listener<C::Message, E>
Source§fn from(listener: UnixListener<C>) -> Self
 
fn from(listener: UnixListener<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for UnixListener<C>where
    C: Freeze,
impl<C> RefUnwindSafe for UnixListener<C>where
    C: RefUnwindSafe,
impl<C> Send for UnixListener<C>where
    C: Send,
impl<C> Sync for UnixListener<C>where
    C: Sync,
impl<C> Unpin for UnixListener<C>where
    C: Unpin,
impl<C> UnwindSafe for UnixListener<C>where
    C: UnwindSafe,
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