pub struct UnixConn<C> {
read_stream: Mutex<ReadStream<ReadHalf<UnixStream>, C>>,
write_stream: Mutex<WriteStream<WriteHalf<UnixStream>, C>>,
peer_endpoint: Option<Endpoint>,
local_endpoint: Option<Endpoint>,
}
Expand description
Unix domain socket implementation of the Connection
trait.
Fields§
§read_stream: Mutex<ReadStream<ReadHalf<UnixStream>, C>>
§write_stream: Mutex<WriteStream<WriteHalf<UnixStream>, C>>
§peer_endpoint: Option<Endpoint>
§local_endpoint: Option<Endpoint>
Implementations§
Trait Implementations§
Source§impl<C, E> Connection for UnixConn<C>
impl<C, E> Connection for UnixConn<C>
type Message = <C as Codec>::Message
type Error = E
Source§fn peer_endpoint(&self) -> Result<Endpoint, Self::Error>
fn peer_endpoint(&self) -> Result<Endpoint, Self::Error>
Returns the remote peer endpoint of this connection
Source§fn local_endpoint(&self) -> Result<Endpoint, Self::Error>
fn local_endpoint(&self) -> Result<Endpoint, Self::Error>
Returns the local socket endpoint of this connection
Auto Trait Implementations§
impl<C> !Freeze for UnixConn<C>
impl<C> !RefUnwindSafe for UnixConn<C>
impl<C> Send for UnixConn<C>where
C: Send,
impl<C> Sync for UnixConn<C>where
C: Send,
impl<C> Unpin for UnixConn<C>where
C: Unpin,
impl<C> UnwindSafe for UnixConn<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