[−][src]Struct fizyr_rpc::transport::UnixTransport
Transport layer for Unix datagram/seqpacket sockets.
Implementations
impl<Socket> UnixTransport<Socket> where
Self: Transport,
[src]
Self: Transport,
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]
Address: AsRef<Path> + 'a,
type Future = Pin<Box<dyn Future<Output = Result<Self>> + 'a>>
The type of the future returned by Self::connect
.
fn connect(address: Address, config: Self::Config) -> Self::Future
[src]
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.
fn split<'a>(
&'a mut self
) -> (UnixReadHalf<&'a UnixSeqpacket>, UnixWriteHalf<&'a UnixSeqpacket>)
[src]
&'a mut self
) -> (UnixReadHalf<&'a UnixSeqpacket>, UnixWriteHalf<&'a UnixSeqpacket>)
Auto Trait Implementations
impl<Socket> RefUnwindSafe for UnixTransport<Socket> where
Socket: RefUnwindSafe,
[src]
Socket: RefUnwindSafe,
impl<Socket> Send for UnixTransport<Socket> where
Socket: Send,
[src]
Socket: Send,
impl<Socket> Sync for UnixTransport<Socket> where
Socket: Sync,
[src]
Socket: Sync,
impl<Socket> Unpin for UnixTransport<Socket> where
Socket: Unpin,
[src]
Socket: Unpin,
impl<Socket> UnwindSafe for UnixTransport<Socket> where
Socket: UnwindSafe,
[src]
Socket: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,