[][src]Struct resolve::message::MsgReader

pub struct MsgReader<'a> { /* fields omitted */ }
[]

Reads a single DNS message from a series of bytes.

Methods

impl<'a> MsgReader<'a>
[src]
[]

[]

Constructs a new message reader.

[]

Constructs a new message reader, which will read from data, beginning at offset.

[]

Returns the number of bytes remaining in the message.

[]

Reads a number of bytes equal to the length of the given buffer. Returns Err(ShortMessage) if there are not enough bytes remaining.

[]

Reads a single byte from the message.

[]

Reads all remaining bytes.

[]

Read a character-string.

According to RFC 1035:

<character-string> is a single length octet followed by that number of characters. <character-string> is treated as binary information, and can be up to 256 characters in length (including the length octet).

[]

Reads a big-endian unsigned 16 bit integer.

[]

Reads a big-endian unsigned 32 bit integer.

[]

Reads n bytes, which are inserted at the end of the given buffer.

[]

Reads a name from the message.

Auto Trait Implementations

impl<'a> Send for MsgReader<'a>

impl<'a> Sync for MsgReader<'a>

Blanket Implementations

impl<T> From for T
[src]
[]

[]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]
[]

[]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]
[]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]
[]

[]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]
[]

[]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]
[]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]
[]

[]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more