[−][src]Struct tokio_seqpacket::ReadHalf
The read half of a seqpacket socket.
Implementations
impl<'a> ReadHalf<'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 poll_recv(
&mut self,
cx: &mut Context<'_>,
buffer: &mut [u8]
) -> Poll<Result<usize>>
[src]
&mut self,
cx: &mut Context<'_>,
buffer: &mut [u8]
) -> Poll<Result<usize>>
Try to receive data on the socket from the connected peer without blocking.
If there is no data ready yet, the current task is scheduled to wake up when the socket becomes readable.
pub fn poll_recv_vectored(
&mut self,
cx: &mut Context<'_>,
buffer: &mut [IoSliceMut<'_>]
) -> Poll<Result<usize>>
[src]
&mut self,
cx: &mut Context<'_>,
buffer: &mut [IoSliceMut<'_>]
) -> Poll<Result<usize>>
Try to receive data on the socket from the connected peer without blocking.
If there is no data ready yet, the current task is scheduled to wake up when the socket becomes readable.
pub fn poll_recv_vectored_with_ancillary(
&mut self,
cx: &mut Context<'_>,
buffer: &mut [IoSliceMut<'_>],
ancillary: &mut SocketAncillary<'_>
) -> Poll<Result<usize>>
[src]
&mut self,
cx: &mut Context<'_>,
buffer: &mut [IoSliceMut<'_>],
ancillary: &mut SocketAncillary<'_>
) -> Poll<Result<usize>>
Try to receive data with ancillary data on the socket from the connected peer without blocking.
If there is no data ready yet, the current task is scheduled to wake up when the socket becomes readable.
pub async fn recv<'_, '_>(&'_ mut self, buffer: &'_ mut [u8]) -> Result<usize>
[src]
Receive data on the socket from the connected peer.
pub async fn recv_vectored<'_, '_, '_>(
&'_ mut self,
buffer: &'_ mut [IoSliceMut<'_>]
) -> Result<usize>
[src]
&'_ mut self,
buffer: &'_ mut [IoSliceMut<'_>]
) -> Result<usize>
Receive data on the socket from the connected peer.
pub async fn recv_vectored_with_ancillary<'_, '_, '_, '_, '_>(
&'_ mut self,
buffer: &'_ mut [IoSliceMut<'_>],
ancillary: &'_ mut SocketAncillary<'_>
) -> Result<usize>
[src]
&'_ mut self,
buffer: &'_ mut [IoSliceMut<'_>],
ancillary: &'_ mut SocketAncillary<'_>
) -> Result<usize>
Receive data with ancillary data on the socket from the connected peer.
pub fn shutdown(&self) -> Result<()>
[src]
Shuts down the read, write, or both halves of this connection.
This function will cause all pending and future I/O calls on the
specified portions to immediately return with an appropriate value
(see the documentation of Shutdown
).
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ReadHalf<'a>
impl<'a> Send for ReadHalf<'a>
impl<'a> Sync for ReadHalf<'a>
impl<'a> Unpin for ReadHalf<'a>
impl<'a> !UnwindSafe for ReadHalf<'a>
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>,