Skip to main content

replay_peeked

Function replay_peeked 

pub fn replay_peeked<Input, P>(
    input: Input,
    ingress_prefix: P,
    egress_prefix: Bytes,
) -> <Input as PeekIoProvider>::Mapped<PrefixedIo<P, <Input as PeekIoProvider>::PeekIo>, PrefixedIo<ReplayReader, <Input as PeekIoProvider>::PeekEgressIo>>
where Input: PeekIoProvider, P: AsyncRead + Send + 'static,
Available on crate feature std only.
Expand description

Map a peeked input so its ingress first replays ingress_prefix and its egress, if any, first replays egress_prefix, see PeekWaiter::finish.