Struct trust_dns_proto::xfer::dns_handle::StreamHandle
source · pub struct StreamHandle { /* private fields */ }
Expand description
The StreamHandle is the general interface for communicating with the DnsMultiplexer
Implementations
sourceimpl StreamHandle
impl StreamHandle
sourcepub fn new(sender: UnboundedSender<Vec<u8>>) -> Self
pub fn new(sender: UnboundedSender<Vec<u8>>) -> Self
Constructs a new StreamHandle for wrapping the sender
Trait Implementations
sourceimpl DnsStreamHandle for StreamHandle
impl DnsStreamHandle for StreamHandle
sourcefn send(&mut self, buffer: SerialMessage) -> Result<(), ProtoError>
fn send(&mut self, buffer: SerialMessage) -> Result<(), ProtoError>
Sends a message to the Handle for delivery to the server.
Auto Trait Implementations
impl !RefUnwindSafe for StreamHandle
impl Send for StreamHandle
impl Sync for StreamHandle
impl Unpin for StreamHandle
impl !UnwindSafe for StreamHandle
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