pub struct Microdesc { /* private fields */ }
Expand description
A single microdescriptor.
Implementations
sourceimpl Microdesc
impl Microdesc
sourcepub fn ipv4_policy(&self) -> &Arc<PortPolicy>
pub fn ipv4_policy(&self) -> &Arc<PortPolicy>
Return the ipv4 exit policy for this microdesc
sourcepub fn ipv6_policy(&self) -> &Arc<PortPolicy>
pub fn ipv6_policy(&self) -> &Arc<PortPolicy>
Return the ipv6 exit policy for this microdesc
sourcepub fn family(&self) -> &RelayFamily
pub fn family(&self) -> &RelayFamily
Return the relay family for this microdesc
sourcepub fn ed25519_id(&self) -> &Ed25519Identity
pub fn ed25519_id(&self) -> &Ed25519Identity
Return the ed25519 identity for this microdesc, if its Ed25519 identity is well-formed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Microdesc
impl Send for Microdesc
impl Sync for Microdesc
impl Unpin for Microdesc
impl UnwindSafe for Microdesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more