pub struct HsId(CtByteArray<32>);
Expand description
The identity of a v3 onion service. (KP_hs_id
)
This is the decoded and validated ed25519 public key that is encoded as a
${base32}.onion
address. When expanded, it is a public key whose
corresponding secret key is controlled by the onion service.
HsId
’s Display
and FromStr
representation is the domain name
"${base32}.onion"
. (Without any subdomains.)
Note: This is a separate type from HsIdKey
because it is about 6x
smaller.
Tuple Fields§
§0: CtByteArray<32>
Implementations§
Trait Implementations§
Source§impl DebugRedacted for HsId
impl DebugRedacted for HsId
Source§fn fmt_redacted(&self, f: &mut Formatter<'_>) -> Result
fn fmt_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Debug::fmt
, but write this object
in its redacted form.Source§fn fmt_unredacted(&self, f: &mut Formatter<'_>) -> Result
fn fmt_unredacted(&self, f: &mut Formatter<'_>) -> Result
As
Debug::fmt
, but write this object
in its unredacted form.Source§impl DisplayRedacted for HsId
impl DisplayRedacted for HsId
Source§fn fmt_unredacted(&self, f: &mut Formatter<'_>) -> Result
fn fmt_unredacted(&self, f: &mut Formatter<'_>) -> Result
As
Display::fmt
, but write this object
in its un-redacted form.Source§fn fmt_redacted(&self, f: &mut Formatter<'_>) -> Result
fn fmt_redacted(&self, f: &mut Formatter<'_>) -> Result
As
Display::fmt
, but write this object
in its redacted form.§fn display_redacted(&self) -> impl Display
fn display_redacted(&self) -> impl Display
Return a pointer wrapping this object that can be Displayed in redacted form
if safe-logging is enabled. Read more
§fn display_unredacted(&self) -> impl Display
fn display_unredacted(&self) -> impl Display
Return a pointer wrapping this object that can be Displayed in unredacted form.
impl Copy for HsId
impl Eq for HsId
impl StructuralPartialEq for HsId
Auto Trait Implementations§
impl Freeze for HsId
impl RefUnwindSafe for HsId
impl Send for HsId
impl Sync for HsId
impl Unpin for HsId
impl UnwindSafe for HsId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more