[−][src]Struct tokio_core::net::UdpFramed
A unified Stream
and Sink
interface to an underlying UdpSocket
, using
the UdpCodec
trait to encode and decode frames.
You can acquire a UdpFramed
instance by using the UdpSocket::framed
adapter.
Methods
impl<C> UdpFramed<C>
[src][−]
pub fn get_ref(&self) -> &UdpSocket
[src][−]
Returns a reference to the underlying I/O stream wrapped by Framed
.
Note that care should be taken to not tamper with the underlying stream of data coming in as it may corrupt the stream of frames otherwise being worked with.
pub fn get_mut(&mut self) -> &mut UdpSocket
[src][−]
Returns a mutable reference to the underlying I/O stream wrapped by
Framed
.
Note that care should be taken to not tamper with the underlying stream of data coming in as it may corrupt the stream of frames otherwise being worked with.
pub fn into_inner(self) -> UdpSocket
[src][−]
Consumes the Framed
, returning its underlying I/O stream.
Note that care should be taken to not tamper with the underlying stream of data coming in as it may corrupt the stream of frames otherwise being worked with.
Trait Implementations
Auto Trait Implementations
impl<C> !RefUnwindSafe for UdpFramed<C>
impl<C> Send for UdpFramed<C> where
C: Send,
C: Send,
impl<C> Sync for UdpFramed<C> where
C: Sync,
C: Sync,
impl<C> Unpin for UdpFramed<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for UdpFramed<C>
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> StreamExt for T where
T: Stream + ?Sized,
[src][+]
T: Stream + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,