Struct tor_interface::tor_crypto::V3OnionServiceId
source · pub struct V3OnionServiceId { /* private fields */ }
Implementations§
source§impl V3OnionServiceId
impl V3OnionServiceId
pub fn from_string(service_id: &str) -> Result<V3OnionServiceId, Error>
pub fn from_public_key(public_key: &Ed25519PublicKey) -> V3OnionServiceId
pub fn from_private_key(private_key: &Ed25519PrivateKey) -> V3OnionServiceId
pub fn is_valid(service_id: &str) -> bool
pub fn as_bytes(&self) -> &[u8; 56]
Trait Implementations§
source§impl Clone for V3OnionServiceId
impl Clone for V3OnionServiceId
source§fn clone(&self) -> V3OnionServiceId
fn clone(&self) -> V3OnionServiceId
Returns a copy 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 V3OnionServiceId
impl Debug for V3OnionServiceId
source§impl Display for V3OnionServiceId
impl Display for V3OnionServiceId
source§impl Hash for V3OnionServiceId
impl Hash for V3OnionServiceId
source§impl Ord for V3OnionServiceId
impl Ord for V3OnionServiceId
source§fn cmp(&self, other: &V3OnionServiceId) -> Ordering
fn cmp(&self, other: &V3OnionServiceId) -> 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 V3OnionServiceId
impl PartialEq for V3OnionServiceId
source§fn eq(&self, other: &V3OnionServiceId) -> bool
fn eq(&self, other: &V3OnionServiceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for V3OnionServiceId
impl PartialOrd for V3OnionServiceId
source§fn partial_cmp(&self, other: &V3OnionServiceId) -> Option<Ordering>
fn partial_cmp(&self, other: &V3OnionServiceId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for V3OnionServiceId
impl StructuralPartialEq for V3OnionServiceId
Auto Trait Implementations§
impl Freeze for V3OnionServiceId
impl RefUnwindSafe for V3OnionServiceId
impl Send for V3OnionServiceId
impl Sync for V3OnionServiceId
impl Unpin for V3OnionServiceId
impl UnwindSafe for V3OnionServiceId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.