pub struct QuestionIterator<'t> { /* private fields */ }

Implementations

Trait Implementations

Returns the offset of the current RR, or None if we haven’t started iterating yet or if the current record has been deleted. Read more
Returns the offset right after the current RR.
Sets the offset of the current RR.
Sets the offset of the next RR.
Prevents access to the current record. This is useful after a delete operation: from a user perspective, the current iterator doesn’t point to a valid RR any more. Read more
Updates the precomputed RR information
Updates the precomputed offsets of each section.
Accesses the raw packet data.
Accesses the mutable raw packet data.
Accesses the parsed packet structure.
Accesses the parsed packet structure.
Returns the next record, or None if there aren’t any left.
Returns true if the record has been invalidated by a previous call to delete()
Raw packet data.
Accesses the raw packet data, starting from the name.
Access the raw packet data, starting from right after the name.
Accesses the mutable raw packet data, starting from the name.
Accesses the mutable raw packet data, starting from right after the name.
Decompresses the whole packet while keeping the iterator available.
Formats the value using the given formatter. Read more
Returns the RR name (labels are dot-delimited), as a byte vector. The name is not supposed to be valid UTF-8. It will be converted to lower-case, though, using traditional DNS conversion rules
Appends the uncompressed RR name (raw format, with labels prefixed by their length) to the given vector. Returns the length of the uncompressed name. Read more
Returns the section the current record belongs to.
Resizes the current record, by growing or shrinking (with a negative value) the current record size by shift bytes. Read more
Changes the name (raw format, untrusted content).
Deletes the record
Returns the query type for the current RR.
Returns the query class for the current RR.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
The error type produced by a failed conversion.
Convert the given value into an approximately equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Approximate the subject with the default scheme.
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
Approximate the subject to a given type with a specific scheme.
Convert the subject to a given type.
Attempt to convert the subject to a given type.
Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The error type produced by a failed conversion.
Convert the given value into the subject type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the subject into the destination type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the given value into an exactly equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an exactly equivalent representation.