Trait trust_dns_proto::xfer::FirstAnswer
source · pub trait FirstAnswer<T, E: From<ProtoError>>: Stream<Item = Result<T, E>> + Unpin + Sized {
// Provided method
fn first_answer(self) -> FirstAnswerFuture<Self> ⓘ { ... }
}
Expand description
Helper trait to convert a Stream of dns response into a Future
Provided Methods§
sourcefn first_answer(self) -> FirstAnswerFuture<Self> ⓘ
fn first_answer(self) -> FirstAnswerFuture<Self> ⓘ
Convert a Stream of dns response into a Future yielding the first answer, discarding others if any.
Object Safety§
This trait is not object safe.