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>

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,

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.

Trait Implementations

§

impl<S> Debug for SplitStream<S>
where S: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<S> Stream for SplitStream<S>
where S: Stream,

§

type Item = <S as Stream>::Item

Values yielded by the stream.
§

fn poll_next( self: Pin<&mut SplitStream<S>>, cx: &mut Context<'_>, ) -> Poll<Option<<S as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the stream. Read more
§

impl<S> Unpin for SplitStream<S>