Struct trust_dns::authority::Catalog [] [src]

pub struct Catalog {
    // some fields omitted
}

Methods

impl Catalog
[src]

fn new() -> Self

fn handle_request(&self, request: Message) -> Message

fn error_msg(id: u16, op_code: OpCode, response_code: ResponseCode) -> Message

fn upsert(&mut self, name: Name, authority: Authority)

fn update(&self, request: &Message) -> Message

The "request" should be an update formatted message. The response will be in the alternate, all 0's format described in RFC 2136 section 3.8 as this is more efficient.

fn lookup(&self, request: &Message) -> Message

fn search(&self, query: &Query) -> Option<(&RwLock<Authority>, Option<Vec<Record>>)>

Trait Implementations

impl Debug for Catalog
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.