pub struct WireDecoder<'a> { /* private fields */ }Expand description
Reads an untrusted DNS message from an external buffer while providing error-checking.
Implementations§
Source§impl<'a> WireDecoder<'a>
impl<'a> WireDecoder<'a>
pub fn new(buffer: &'a [u8]) -> Self
pub fn decode_message(&mut self) -> Result<WireMessage<'a>, DecoderError>
Trait Implementations§
Source§impl<'a> Clone for WireDecoder<'a>
impl<'a> Clone for WireDecoder<'a>
Source§fn clone(&self) -> WireDecoder<'a>
fn clone(&self) -> WireDecoder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WireDecoder<'a>
impl<'a> Debug for WireDecoder<'a>
Source§impl<'a> PartialEq for WireDecoder<'a>
impl<'a> PartialEq for WireDecoder<'a>
impl<'a> Eq for WireDecoder<'a>
impl<'a> StructuralPartialEq for WireDecoder<'a>
Auto Trait Implementations§
impl<'a> Freeze for WireDecoder<'a>
impl<'a> RefUnwindSafe for WireDecoder<'a>
impl<'a> Send for WireDecoder<'a>
impl<'a> Sync for WireDecoder<'a>
impl<'a> Unpin for WireDecoder<'a>
impl<'a> UnwindSafe for WireDecoder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more