Struct trust_dns_proto::xfer::DnsRequestStreamHandle
source · pub struct DnsRequestStreamHandle<F>where
F: Future<Item = DnsResponse, Error = ProtoError> + Send,{ /* private fields */ }
Expand description
A sender to which serialized DNS Messages can be sent
Implementations
sourceimpl<F> DnsRequestStreamHandle<F>where
F: Future<Item = DnsResponse, Error = ProtoError> + Send,
impl<F> DnsRequestStreamHandle<F>where
F: Future<Item = DnsResponse, Error = ProtoError> + Send,
sourcepub fn new(sender: UnboundedSender<OneshotDnsRequest<F>>) -> Self
pub fn new(sender: UnboundedSender<OneshotDnsRequest<F>>) -> Self
Constructs a new BufStreamHandle with the associated ProtoError
sourcepub fn unbounded_send(
&self,
msg: OneshotDnsRequest<F>
) -> Result<(), SendError<OneshotDnsRequest<F>>>
pub fn unbounded_send(
&self,
msg: OneshotDnsRequest<F>
) -> Result<(), SendError<OneshotDnsRequest<F>>>
Trait Implementations
sourceimpl<F> Clone for DnsRequestStreamHandle<F>where
F: Future<Item = DnsResponse, Error = ProtoError> + Send,
impl<F> Clone for DnsRequestStreamHandle<F>where
F: Future<Item = DnsResponse, Error = 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more