Struct trust_dns_proto::xfer::DnsRequestStreamHandle [−][src]
pub struct DnsRequestStreamHandle<F> where
F: Future<Output = Result<DnsResponse, ProtoError>> + Send, { /* fields omitted */ }
Expand description
A sender to which serialized DNS Messages can be sent
Implementations
impl<F> DnsRequestStreamHandle<F> where
F: Future<Output = Result<DnsResponse, ProtoError>> + Send,
impl<F> DnsRequestStreamHandle<F> where
F: Future<Output = Result<DnsResponse, ProtoError>> + Send,
Constructs a new BufStreamHandle with the associated ProtoError
pub fn unbounded_send(
&self,
msg: OneshotDnsRequest<F>
) -> Result<(), TrySendError<OneshotDnsRequest<F>>>
pub fn unbounded_send(
&self,
msg: OneshotDnsRequest<F>
) -> Result<(), TrySendError<OneshotDnsRequest<F>>>
see [futures::sync::mpsc::UnboundedSender
]
Trait Implementations
impl<F> Clone for DnsRequestStreamHandle<F> where
F: Future<Output = Result<DnsResponse, ProtoError>> + Send,
impl<F> Clone for DnsRequestStreamHandle<F> where
F: Future<Output = Result<DnsResponse, ProtoError>> + Send,
Auto Trait Implementations
impl<F> !RefUnwindSafe for DnsRequestStreamHandle<F>
impl<F> Send for DnsRequestStreamHandle<F>
impl<F> Sync for DnsRequestStreamHandle<F>
impl<F> Unpin for DnsRequestStreamHandle<F>
impl<F> !UnwindSafe for DnsRequestStreamHandle<F>
Blanket Implementations
Mutably borrows from an owned value. Read more