Struct sparkle::WireDecoder
[−]
[src]
pub struct WireDecoder<'a> { /* fields omitted */ }
Reads an untrusted DNS message from an external buffer while providing error-checking.
Methods
impl<'a> WireDecoder<'a>
[src]
fn new(buffer: &'a [u8]) -> Self
fn decode_message(&mut self) -> Result<WireMessage<'a>, DecoderError>
Trait Implementations
impl<'a> Clone for WireDecoder<'a>
[src]
fn clone(&self) -> WireDecoder<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Debug for WireDecoder<'a>
[src]
impl<'a> Eq for WireDecoder<'a>
[src]
impl<'a> PartialEq for WireDecoder<'a>
[src]
fn eq(&self, __arg_0: &WireDecoder<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WireDecoder<'a>) -> bool
This method tests for !=
.