[][src]Struct tokio_seqpacket::WriteHalf

pub struct WriteHalf<'a>(_);

The write half of a seqpacket socket.

Implementations

impl<'a> WriteHalf<'a>[src]

pub fn local_addr(&self) -> Result<SocketAddr>[src]

Get the socket address of the local half of this connection.

pub fn peer_addr(&self) -> Result<SocketAddr>[src]

Get the socket address of the remote half of this connection.

pub fn peer_cred(&self) -> Result<UCred>[src]

Get the effective credentials of the process which called connect or pair.

pub fn shutdown(&self) -> Result<()>[src]

Shuts down the write halve of the connection.

pub fn poll_send(
    &mut self,
    cx: &mut Context<'_>,
    buffer: &[u8]
) -> Poll<Result<usize>>
[src]

Try to send data on the socket to the connected peer without blocking.

If the socket is not ready yet, the current task is scheduled to wake up when the socket becomes writeable.

pub fn poll_send_vectored(
    &mut self,
    cx: &mut Context<'_>,
    buffer: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]

Try to send data on the socket to the connected peer without blocking.

If the socket is not ready yet, the current task is scheduled to wake up when the socket becomes writeable.

pub fn poll_send_vectored_with_ancillary(
    &mut self,
    cx: &mut Context<'_>,
    buffer: &[IoSlice<'_>],
    ancillary: &mut SocketAncillary<'_>
) -> Poll<Result<usize>>
[src]

Try to send data with ancillary data on the socket to the connected peer without blocking.

If the socket is not ready yet, the current task is scheduled to wake up when the socket becomes writeable.

pub async fn send<'_, '_>(&'_ mut self, buffer: &'_ [u8]) -> Result<usize>[src]

Send data on the socket to the connected peer.

pub async fn send_vectored<'_, '_, '_>(
    &'_ mut self,
    buffer: &'_ [IoSlice<'_>]
) -> Result<usize>
[src]

Send data on the socket to the connected peer.

pub async fn send_vectored_with_ancillary<'_, '_, '_, '_, '_>(
    &'_ mut self,
    buffer: &'_ [IoSlice<'_>],
    ancillary: &'_ mut SocketAncillary<'_>
) -> Result<usize>
[src]

Send data with ancillary data on the socket to the connected peer.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for WriteHalf<'a>

impl<'a> Send for WriteHalf<'a>

impl<'a> Sync for WriteHalf<'a>

impl<'a> Unpin for WriteHalf<'a>

impl<'a> !UnwindSafe for WriteHalf<'a>

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.