pub type UdpFramedSink<Codec, Item> = SplitSink<UdpFramed<Codec>, (Item, SocketAddr)>;
Expand description
A framed UDP Sink
(sending).
Aliased Type§
struct UdpFramedSink<Codec, Item> { /* private fields */ }
Implementations
§impl<S, Item> SplitSink<S, Item>
impl<S, Item> SplitSink<S, Item>
pub fn is_pair_of(&self, other: &SplitStream<S>) -> bool
pub fn is_pair_of(&self, other: &SplitStream<S>) -> bool
Returns true
if the SplitStream<S>
and SplitSink<S>
originate from the same call to StreamExt::split
.
Trait Implementations
§impl<S, Item> Sink<Item> for SplitSink<S, Item>where
S: Sink<Item>,
impl<S, Item> Sink<Item> for SplitSink<S, Item>where
S: Sink<Item>,
§fn poll_ready(
self: Pin<&mut SplitSink<S, Item>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <S as Sink<Item>>::Error>>
fn poll_ready( self: Pin<&mut SplitSink<S, Item>>, cx: &mut Context<'_>, ) -> Poll<Result<(), <S as Sink<Item>>::Error>>
Attempts to prepare the
Sink
to receive a value. Read more§fn start_send(
self: Pin<&mut SplitSink<S, Item>>,
item: Item,
) -> Result<(), <S as Sink<Item>>::Error>
fn start_send( self: Pin<&mut SplitSink<S, Item>>, item: Item, ) -> Result<(), <S as Sink<Item>>::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read more