Struct trust_dns_proto::xfer::BufStreamHandle
source · pub struct BufStreamHandle { /* private fields */ }
Expand description
A sender to which serialized DNS Messages can be sent
Implementations
sourceimpl BufStreamHandle
impl BufStreamHandle
sourcepub fn new(sender: UnboundedSender<SerialMessage>) -> Self
pub fn new(sender: UnboundedSender<SerialMessage>) -> Self
Constructs a new BufStreamHandle with the associated ProtoError
sourcepub fn unbounded_send(
&self,
msg: SerialMessage
) -> Result<(), SendError<SerialMessage>>
pub fn unbounded_send(
&self,
msg: SerialMessage
) -> Result<(), SendError<SerialMessage>>
Trait Implementations
sourceimpl Clone for BufStreamHandle
impl Clone for BufStreamHandle
sourcefn clone(&self) -> BufStreamHandle
fn clone(&self) -> BufStreamHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for BufStreamHandle
impl Send for BufStreamHandle
impl Sync for BufStreamHandle
impl Unpin for BufStreamHandle
impl !UnwindSafe for BufStreamHandle
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