Struct doh_client::dns::DnsCodec
source · pub struct DnsCodec;Implementations
Trait Implementations
sourceimpl Decoder for DnsCodec
impl Decoder for DnsCodec
sourcefn decode(&mut self, buf: &mut BytesMut) -> Result<Option<DnsPacket>, Error>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<DnsPacket>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for DnsCodec
impl Send for DnsCodec
impl Sync for DnsCodec
impl Unpin for DnsCodec
impl UnwindSafe for DnsCodec
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