Struct trust_dns::BufClientStreamHandle
source · pub struct BufClientStreamHandle { /* private fields */ }
Expand description
A sender to which a Message can be sent
A buffering stream bound to a SocketAddr
Implementations
sourceimpl BufDnsStreamHandle
impl BufDnsStreamHandle
sourcepub fn new(
name_server: SocketAddr,
sender: BufStreamHandle
) -> BufDnsStreamHandle
pub fn new(
name_server: SocketAddr,
sender: BufStreamHandle
) -> BufDnsStreamHandle
Constructs a new Buffered Stream Handle, used for sending data to the DNS peer.
Arguments
name_server
- the address of the DNS serversender
- the handle being used to send data to the server
Trait Implementations
sourceimpl DnsStreamHandle for BufDnsStreamHandle
impl DnsStreamHandle for BufDnsStreamHandle
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 BufDnsStreamHandle
impl Send for BufDnsStreamHandle
impl Sync for BufDnsStreamHandle
impl Unpin for BufDnsStreamHandle
impl !UnwindSafe for BufDnsStreamHandle
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