adding docs
This commit is contained in:
parent
ee9022211e
commit
dcb257a784
@ -1,4 +1,4 @@
|
|||||||
//! Utility functions for operating on bytes
|
//! Utility functions for operating on bytes including splitting multi-byte integers into bytes and vice versa
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//! Bundling config for the server and client
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DomainConfig {
|
pub struct DomainConfig {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//! Method for handling cryptography including ECDH shared secret derivation and symmetric key encryption
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//! Structures making up the DNS workflow including requests, responses and headers
|
//! Structures making up the DNS workflow including messages and headers
|
||||||
pub mod header;
|
pub mod header;
|
||||||
pub mod question;
|
pub mod question;
|
||||||
pub mod message;
|
pub mod message;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//! Functions for constructing internal DNS structures from network message bytes
|
||||||
|
|
||||||
use crate::byte;
|
use crate::byte;
|
||||||
use crate::message::{DNSMessage, Direction, DNSHeader, Opcode, ResponseCode, QuestionParseError, questions_from_bytes, records_from_bytes, RecordParseError};
|
use crate::message::{DNSMessage, Direction, DNSHeader, Opcode, ResponseCode, QuestionParseError, questions_from_bytes, records_from_bytes, RecordParseError};
|
||||||
use crate::net::NetworkMessage;
|
use crate::net::NetworkMessage;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//! Network layer for binding and processing UDP traffic
|
||||||
|
|
||||||
pub mod socket;
|
pub mod socket;
|
||||||
pub mod raw_request;
|
pub mod raw_request;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//! Business-logic-like structures for processing parsed messages
|
||||||
|
|
||||||
pub mod request;
|
pub mod request;
|
||||||
pub mod response;
|
pub mod response;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//! Utility functions for manipulating strings
|
||||||
|
|
||||||
use urlencoding::encode;
|
use urlencoding::encode;
|
||||||
|
|
||||||
pub fn encode_domain_name(name: &String) -> Vec<u8>
|
pub fn encode_domain_name(name: &String) -> Vec<u8>
|
||||||
|
Loading…
Reference in New Issue
Block a user