Type Alias dfir_rs::util::UdpFramedStream
source · pub type UdpFramedStream<Codec> = SplitStream<UdpFramed<Codec>>;
Expand description
A framed UDP Stream
(receiving).
Aliased Type§
struct UdpFramedStream<Codec>(/* private fields */);
Implementations
§impl<S> SplitStream<S>
impl<S> SplitStream<S>
pub fn is_pair_of<Item>(&self, other: &SplitSink<S, Item>) -> bool
pub fn is_pair_of<Item>(&self, other: &SplitSink<S, Item>) -> bool
Returns true
if the SplitStream<S>
and SplitSink<S>
originate from the same call to StreamExt::split
.
§impl<S> SplitStream<S>where
S: Unpin,
impl<S> SplitStream<S>where
S: Unpin,
pub fn reunite<Item>(
self,
other: SplitSink<S, Item>,
) -> Result<S, ReuniteError<S, Item>>where
S: Sink<Item>,
pub fn reunite<Item>(
self,
other: SplitSink<S, Item>,
) -> Result<S, ReuniteError<S, Item>>where
S: Sink<Item>,
Attempts to put the two “halves” of a split Stream + Sink
back
together. Succeeds only if the SplitStream<S>
and SplitSink<S>
are
a matching pair originating from the same call to StreamExt::split
.