Struct trust_dns_proto::xfer::BufStreamHandle [−][src]
pub struct BufStreamHandle<E> where
E: FromProtoError, { /* fields omitted */ }A sender to which serialized DNS Messages can be sent
Methods
impl<E> BufStreamHandle<E> where
E: FromProtoError, [src]
impl<E> BufStreamHandle<E> where
E: FromProtoError, pub fn new(sender: UnboundedSender<(Vec<u8>, SocketAddr)>) -> Self[src]
pub fn new(sender: UnboundedSender<(Vec<u8>, SocketAddr)>) -> SelfConstructs a new BufStreamHandle with the associated ProtoError
pub fn unbounded_send(
&self,
msg: (Vec<u8>, SocketAddr)
) -> Result<(), SendError<(Vec<u8>, SocketAddr)>>[src]
pub fn unbounded_send(
&self,
msg: (Vec<u8>, SocketAddr)
) -> Result<(), SendError<(Vec<u8>, SocketAddr)>>see [futures::sync::mpsc::UnboundedSender]
Trait Implementations
impl<E: Clone> Clone for BufStreamHandle<E> where
E: FromProtoError, [src]
impl<E: Clone> Clone for BufStreamHandle<E> where
E: FromProtoError, fn clone(&self) -> BufStreamHandle<E>[src]
fn clone(&self) -> BufStreamHandle<E>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<E> Send for BufStreamHandle<E>
impl<E> Send for BufStreamHandle<E>impl<E> Sync for BufStreamHandle<E> where
E: Sync,
impl<E> Sync for BufStreamHandle<E> where
E: Sync,