Skip to main content

Module key_specifier

Module key_specifier 

Source
Expand description

The KeySpecifier trait and its implementations.

Re-exportsΒ§

use std::collections::BTreeMap; πŸ”’
use std::fmt; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Display; πŸ”’
use std::ops::Range; πŸ”’
use std::result::Result as StdResult; πŸ”’
use std::str::FromStr; πŸ”’
use derive_more::From; πŸ”’
use safelog::DisplayRedacted as _; πŸ”’
use thiserror::Error; πŸ”’
use tor_error::Bug; πŸ”’
use tor_error::internal; πŸ”’
use tor_error::into_internal; πŸ”’
use tor_hscrypto::pk::HSID_ONION_SUFFIX; πŸ”’
use tor_hscrypto::pk::HsId; πŸ”’
use tor_hscrypto::pk::HsIdParseError; πŸ”’
use tor_hscrypto::time::TimePeriod; πŸ”’
use tor_persist::hsnickname::HsNickname; πŸ”’
use tor_persist::slug::Slug; πŸ”’
use crate::ArtiPath; πŸ”’
use crate::ArtiPathSyntaxError; πŸ”’

ModulesΒ§

derive
KeySpecifier derive-deftly macro and its support code

StructsΒ§

ArtiPathRange
A range specifying a substring of a KeyPath.
KeyPathInfo
Information about a KeyPath.
KeyPathInfoBuilder
Builder for KeyPathInfo.
KeySpecifierComponentPrettyHelper πŸ”’
Wrapper for KeySpecifierComponent that Displays via fmt_pretty

EnumsΒ§

ArtiPathError
An error while attempting to extract information from an ArtiPath.
ArtiPathUnavailableError
An error returned by a KeySpecifier.
CTorPath
The path of a key in the C Tor key store.
CTorPathError
An error while attempting to convert a CTorPath to its corresponding key specifier type.
InvalidKeyPathComponentValue
Error to be returned by KeySpecifierComponent::from_slug implementations
KeyPath
The identifier of a key.
KeyPathError
An error while attempting to extract information about a key given its path
KeyPathInfoBuilderError
Error type for KeyPathInfoBuilder
KeyPathPattern
A pattern that can be used to match ArtiPaths or CTorPaths.

TraitsΒ§

CTorKeySpecifier
A trait for converting key specifiers to and from CTorPath.
CertSpecifierPattern
A pattern specifying some or all of a kind of certificate
KeyCertificateSpecifier
The β€œspecifier” of a key certificate, which identifies an instance of a cert, as well as its signing and subject keys.
KeyPathInfoExtractor
A trait for extracting info out of a KeyPaths.
KeySpecifier
The β€œspecifier” of a key, which identifies an instance of a key.
KeySpecifierComponent
A trait for serializing and deserializing specific types of Slugs.
KeySpecifierComponentViaDisplayFromStr
Implement KeySpecifierComponent in terms of Display and FromStr (helper trait)
KeySpecifierPattern
A pattern specifying some or all of a kind of key