[−][src]Struct uds::tokio::UnixSeqpacketConn
An I/O object representing a Unix Sequenced-packet socket.
Implementations
impl UnixSeqpacketConn
[src]
pub async fn connect<P: AsRef<Path>>(path: P) -> Result<UnixSeqpacketConn>
[src]
Connects to the socket named by path.
This function will create a new Unix socket and connect to the path specified, associating the returned stream with the default event loop's handle.
pub fn from_nonblocking(conn: UnixSeqpacketConn) -> Result<UnixSeqpacketConn>
[src]
Creates a tokio-compatible socket from a nonblocking variant.
pub fn pair() -> Result<(UnixSeqpacketConn, UnixSeqpacketConn)>
[src]
Creates an unnamed pair of connected sockets.
This function will create a pair of interconnected Unix sockets for communicating back and forth between one another. Each socket will be associated with the default event loop's handle.
pub fn shutdown(&self, how: Shutdown) -> Result<()>
[src]
Shuts down the read, write, or both halves of this connection.
impl UnixSeqpacketConn
[src]
pub async fn send<'_, '_>(&'_ mut self, buf: &'_ [u8]) -> Result<usize>
[src]
Sends data on the socket to the socket's peer.
pub async fn recv<'_, '_>(&'_ mut self, buf: &'_ mut [u8]) -> Result<usize>
[src]
Receives data from the socket.
Auto Trait Implementations
impl !RefUnwindSafe for UnixSeqpacketConn
impl Send for UnixSeqpacketConn
impl Sync for UnixSeqpacketConn
impl Unpin for UnixSeqpacketConn
impl !UnwindSafe for UnixSeqpacketConn
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,
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.
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>,