pub struct OnionAddrV3 { /* private fields */ }
Expand description
A version 3 onion service address.
Version 3 Onion Service addresses const of a crate::tor_crypto::V3OnionServiceId
and a 16-bit port number.
Implementations§
Source§impl OnionAddrV3
impl OnionAddrV3
Sourcepub fn new(service_id: V3OnionServiceId, virt_port: u16) -> OnionAddrV3
pub fn new(service_id: V3OnionServiceId, virt_port: u16) -> OnionAddrV3
Create a new OnionAddrV3
from a crate::tor_crypto::V3OnionServiceId
and port number.
Sourcepub fn service_id(&self) -> &V3OnionServiceId
pub fn service_id(&self) -> &V3OnionServiceId
Return the service id associated with this onion address.
Trait Implementations§
Source§impl Clone for OnionAddrV3
impl Clone for OnionAddrV3
Source§fn clone(&self) -> OnionAddrV3
fn clone(&self) -> OnionAddrV3
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OnionAddrV3
impl Debug for OnionAddrV3
Source§impl Display for OnionAddrV3
impl Display for OnionAddrV3
Source§impl Hash for OnionAddrV3
impl Hash for OnionAddrV3
Source§impl Ord for OnionAddrV3
impl Ord for OnionAddrV3
Source§fn cmp(&self, other: &OnionAddrV3) -> Ordering
fn cmp(&self, other: &OnionAddrV3) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OnionAddrV3
impl PartialEq for OnionAddrV3
Source§impl PartialOrd for OnionAddrV3
impl PartialOrd for OnionAddrV3
impl Eq for OnionAddrV3
impl StructuralPartialEq for OnionAddrV3
Auto Trait Implementations§
impl Freeze for OnionAddrV3
impl RefUnwindSafe for OnionAddrV3
impl Send for OnionAddrV3
impl Sync for OnionAddrV3
impl Unpin for OnionAddrV3
impl UnwindSafe for OnionAddrV3
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.