pub trait DNSIterable {
Show 19 methods fn next(self) -> Option<Self>
    where
        Self: Sized
; fn offset(&self) -> Option<usize>; fn offset_next(&self) -> usize; fn set_offset(&mut self, offset: usize); fn set_offset_next(&mut self, offset: usize); fn invalidate(&mut self); fn recompute_rr(&mut self); fn recompute_sections(&mut self); fn raw(&self) -> RRRaw<'_>; fn raw_mut(&mut self) -> RRRawMut<'_>; fn parsed_packet(&self) -> &ParsedPacket; fn parsed_packet_mut(&mut self) -> &mut ParsedPacket; fn is_tombstone(&self) -> bool { ... } fn packet(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8] { ... } fn name_slice(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8] { ... } fn rdata_slice(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8] { ... } fn name_slice_mut(&mut self) -> &mut [u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8] { ... } fn rdata_slice_mut(&mut self) -> &mut [u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8] { ... } fn uncompress(&mut self) -> Result<(), Error> { ... }
}
Expand description

The DNSIterable trait represents a set of records that can be iterated over.

Required Methods

Returns the next record, or None if there aren’t any left.

Returns the offset of the current RR, or None if we haven’t started iterating yet or if the current record has been deleted.

In order to check for the later, please use is_tombstone() instead for clarity.

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.

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.

Provided Methods

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.

Implementors