pub trait TruncatingRecvMsgWithFullSize: TruncatingRecvMsg {
    // Required method
    fn recv_trunc_with_full_size(
        &mut self,
        peek: bool,
        buf: &mut MsgBuf<'_>,
        abuf: Option<&mut Self::AddrBuf>
    ) -> Result<TryRecvResult, Self::Error>;
}
Expand description

Like TruncatingRecvMsg, but reports the exact true size of truncated messages.

Required Methods§

source

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut Self::AddrBuf> ) -> Result<TryRecvResult, Self::Error>

Like .recv_trunc(), but returns the true length of the message (size before truncation).

Implementations on Foreign Types§

source§

impl TruncatingRecvMsgWithFullSize for &UdpSocket

Linux-only, requires kernel 3.4 or newer.

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut InetAddr> ) -> Result<TryRecvResult>

source§

impl TruncatingRecvMsgWithFullSize for &UnixDatagram

Linux-only, requires kernel 3.4 or newer.

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut UnixAddr> ) -> Result<TryRecvResult>

source§

impl TruncatingRecvMsgWithFullSize for UdpSocket

Linux-only, requires kernel 3.4 or newer.

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut InetAddr> ) -> Result<TryRecvResult>

source§

impl TruncatingRecvMsgWithFullSize for UnixDatagram

Linux-only, requires kernel 3.4 or newer.

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut UnixAddr> ) -> Result<TryRecvResult>

source§

impl<T: TruncatingRecvMsgWithFullSize + ?Sized> TruncatingRecvMsgWithFullSize for &mut T

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut Self::AddrBuf> ) -> Result<TryRecvResult, Self::Error>

source§

impl<T: TruncatingRecvMsgWithFullSize + ?Sized> TruncatingRecvMsgWithFullSize for Box<T>

source§

fn recv_trunc_with_full_size( &mut self, peek: bool, buf: &mut MsgBuf<'_>, abuf: Option<&mut Self::AddrBuf> ) -> Result<TryRecvResult, Self::Error>

Implementors§

source§

impl<AddrBuf> TruncatingRecvMsgWithFullSize for Empty<AddrBuf>