[][src]Struct fizyr_rpc::transport::UnixTransport

pub struct UnixTransport<Socket> { /* fields omitted */ }

Transport layer for Unix datagram/seqpacket sockets.

Implementations

impl<Socket> UnixTransport<Socket> where
    Self: Transport
[src]

pub fn new(socket: Socket, config: UnixConfig) -> Self[src]

Create a new transport with custom configuration.

pub fn new_default(socket: Socket) -> Self[src]

Create a new transport using the default configuration.

Trait Implementations

impl<'a, Address> Connect<'a, Address> for UnixTransport<UnixSeqpacket> where
    Address: AsRef<Path> + 'a, 
[src]

type Future = Pin<Box<dyn Future<Output = Result<Self>> + 'a>>

The type of the future returned by Self::connect.

impl Transport for UnixTransport<UnixSeqpacket>[src]

type Body = UnixBody

The body type for the messages.

type Config = UnixConfig

The configuration type for the transport.

type ReadHalf = ReadHalfType

The type of the read half of the transport.

type WriteHalf = WriteHalfType

The type of the write half of the transport.

Auto Trait Implementations

impl<Socket> RefUnwindSafe for UnixTransport<Socket> where
    Socket: RefUnwindSafe
[src]

impl<Socket> Send for UnixTransport<Socket> where
    Socket: Send
[src]

impl<Socket> Sync for UnixTransport<Socket> where
    Socket: Sync
[src]

impl<Socket> Unpin for UnixTransport<Socket> where
    Socket: Unpin
[src]

impl<Socket> UnwindSafe for UnixTransport<Socket> where
    Socket: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.