pub struct RelayServerDescriptor {
pub common: ServerDescriptor,
pub certificate: Option<Ed25519Certificate>,
pub ed25519_certificate: Option<String>,
pub ed25519_master_key: Option<String>,
pub ed25519_signature: Option<String>,
pub onion_key: Option<String>,
pub onion_key_crosscert: Option<String>,
pub ntor_onion_key_crosscert: Option<String>,
pub ntor_onion_key_crosscert_sign: Option<String>,
pub signing_key: Option<String>,
pub signature: Option<String>,
}Fields§
§common: ServerDescriptor§certificate: Option<Ed25519Certificate>§ed25519_certificate: Option<String>§ed25519_master_key: Option<String>§ed25519_signature: Option<String>§onion_key: Option<String>§onion_key_crosscert: Option<String>§ntor_onion_key_crosscert: Option<String>§ntor_onion_key_crosscert_sign: Option<String>§signing_key: Option<String>§signature: Option<String>Implementations§
Source§impl RelayServerDescriptor
impl RelayServerDescriptor
pub fn parse(content: &[u8], validate: bool) -> Result<Self>
pub fn parse_with_options( content: &[u8], validate: bool, annotations: Vec<String>, skip_crypto_validation: bool, ) -> Result<Self>
pub fn digest_bytes(&self, hash: DigestHash) -> Result<Vec<u8>>
pub fn digest( &self, hash: DigestHash, encoding: DigestEncoding, ) -> Result<String>
pub fn parse_many(content: &[u8], validate: bool) -> Result<Vec<Self>>
pub fn make_router_status_entry(&self) -> Result<RouterStatusEntryV3>
pub fn content( attributes: &Attributes, exclude: &[&str], signing_key: Option<&RsaPrivateKey>, exit_policy: Option<&ExitPolicy>, ) -> Result<Vec<u8>>
pub fn create( attributes: &Attributes, exclude: &[&str], validate: bool, signing_key: Option<&RsaPrivateKey>, exit_policy: Option<&ExitPolicy>, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for RelayServerDescriptor
impl Clone for RelayServerDescriptor
Source§impl Debug for RelayServerDescriptor
impl Debug for RelayServerDescriptor
Source§impl Deref for RelayServerDescriptor
impl Deref for RelayServerDescriptor
Source§type Target = ServerDescriptor
type Target = ServerDescriptor
The resulting type after dereferencing.
Source§fn deref(&self) -> &ServerDescriptor
fn deref(&self) -> &ServerDescriptor
Dereferences the value.
Source§impl PartialEq for RelayServerDescriptor
impl PartialEq for RelayServerDescriptor
Source§impl Serialize for RelayServerDescriptor
impl Serialize for RelayServerDescriptor
impl StructuralPartialEq for RelayServerDescriptor
Auto Trait Implementations§
impl Freeze for RelayServerDescriptor
impl RefUnwindSafe for RelayServerDescriptor
impl Send for RelayServerDescriptor
impl Sync for RelayServerDescriptor
impl Unpin for RelayServerDescriptor
impl UnsafeUnpin for RelayServerDescriptor
impl UnwindSafe for RelayServerDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more