Added a lot of doc strings identifying various modules

This commit is contained in:
Nathan Fisher 2023-06-22 11:25:55 -04:00
parent b957138048
commit 3d0dd96f14
15 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,4 @@
//! Dory's internal representation of a TLS certificate
use crate::mailuser::Mailuser; use crate::mailuser::Mailuser;
use std::collections::{BTreeMap, HashMap}; use std::collections::{BTreeMap, HashMap};

View file

@ -1,3 +1,4 @@
//! Builds an incoming connection from a TCP stream and certificate verifier
use super::{FingerPrintStore, Verifier}; use super::{FingerPrintStore, Verifier};
use rustls::ServerConfig; use rustls::ServerConfig;
use std::{net::TcpStream, sync::Arc}; use std::{net::TcpStream, sync::Arc};

View file

@ -1,3 +1,4 @@
//! A connection for a recieving Misfin server
pub mod builder; pub mod builder;
pub mod error; pub mod error;
pub mod verifier; pub mod verifier;

View file

@ -1,3 +1,4 @@
//! Fingerprinting for TLS certificates
use { use {
digest::Digest, digest::Digest,
rustls::Certificate, rustls::Certificate,

View file

@ -1,2 +1,3 @@
//! A Gemtext representation and parser
pub mod parser; pub mod parser;
pub use parser::{GemtextNode, Parser}; pub use parser::{GemtextNode, Parser};

View file

@ -1,3 +1,4 @@
//! A DNS name for an internet host
use std::{ use std::{
fmt, fmt,
net::{SocketAddr, ToSocketAddrs}, net::{SocketAddr, ToSocketAddrs},

View file

@ -1,3 +1,4 @@
//! A full representation of a Misfin mailbox, including display name
use crate::{mailuser::Mailuser, prelude::Host}; use crate::{mailuser::Mailuser, prelude::Host};
use std::{fmt, str::FromStr}; use std::{fmt, str::FromStr};

View file

@ -1,3 +1,4 @@
//! A trait for abstracting mail storage
#![allow(unused_variables)] #![allow(unused_variables)]
use crate::prelude::{Host, Mailbox, Mailuser, Message}; use crate::prelude::{Host, Mailbox, Mailuser, Message};
use std::{collections::HashMap, io, str::FromStr}; use std::{collections::HashMap, io, str::FromStr};

View file

@ -1,3 +1,4 @@
//! A naive representation of a Misfin address, minus display name
use crate::prelude::{Host, Mailbox, ParseMailboxError as Error}; use crate::prelude::{Host, Mailbox, ParseMailboxError as Error};
use std::{fmt, str::FromStr}; use std::{fmt, str::FromStr};

View file

@ -1,3 +1,4 @@
//! A Misfin message broken out into component parts, useful for client display
use crate::prelude::Mailbox; use crate::prelude::Mailbox;
use std::{fmt, str::FromStr}; use std::{fmt, str::FromStr};

View file

@ -1 +1 @@
//! Accepts a connection and processes an incoming request

View file

@ -1,3 +1,4 @@
//! A Misfin request, made up of a recipient address and a message string
use crate::prelude::{Mailbox, Mailuser}; use crate::prelude::{Mailbox, Mailuser};
use std::{fmt, str::FromStr}; use std::{fmt, str::FromStr};

View file

@ -1,3 +1,4 @@
//! Parses the receiving server's response to the sender
use crate::prelude::Status; use crate::prelude::Status;
use std::{fmt, str::FromStr}; use std::{fmt, str::FromStr};

View file

@ -1,3 +1,4 @@
//! Sends a Misfin [`Request`]
use { use {
crate::prelude::{CertificateStore, ClientCertificateStore, Mailuser, Request, Response}, crate::prelude::{CertificateStore, ClientCertificateStore, Mailuser, Request, Response},
rustls::{ClientConfig, ClientConnection, StreamOwned}, rustls::{ClientConfig, ClientConnection, StreamOwned},

View file

@ -1,3 +1,4 @@
//! Return status codes for Misfin
mod error; mod error;
pub use error::Error; pub use error::Error;