Struct tor_hsclient::HsClientNickname
source · pub struct HsClientNickname(/* private fields */);Expand description
Implementations§
source§impl HsClientNickname
impl HsClientNickname
sourcepub fn new(inner: String) -> Result<Self, ArtiPathSyntaxError>
pub fn new(inner: String) -> Result<Self, ArtiPathSyntaxError>
Create a new HsClientNickname.
The inner string must be a valid Slug.
Trait Implementations§
source§impl AsRef<Slug> for HsClientNickname
impl AsRef<Slug> for HsClientNickname
source§impl Clone for HsClientNickname
impl Clone for HsClientNickname
source§fn clone(&self) -> HsClientNickname
fn clone(&self) -> HsClientNickname
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 HsClientNickname
impl Debug for HsClientNickname
source§impl Display for HsClientNickname
impl Display for HsClientNickname
source§impl From<HsClientNickname> for Slug
impl From<HsClientNickname> for Slug
source§fn from(original: HsClientNickname) -> Self
fn from(original: HsClientNickname) -> Self
Converts to this type from the input type.
source§impl FromStr for HsClientNickname
impl FromStr for HsClientNickname
source§impl PartialEq for HsClientNickname
impl PartialEq for HsClientNickname
source§fn eq(&self, other: &HsClientNickname) -> bool
fn eq(&self, other: &HsClientNickname) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl KeySpecifierComponentViaDisplayFromStr for HsClientNickname
impl StructuralPartialEq for HsClientNickname
Auto Trait Implementations§
impl RefUnwindSafe for HsClientNickname
impl Send for HsClientNickname
impl Sync for HsClientNickname
impl Unpin for HsClientNickname
impl UnwindSafe for HsClientNickname
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
§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>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<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>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> 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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> KeySpecifierComponent for Twhere
T: KeySpecifierComponentViaDisplayFromStr + ?Sized,
impl<T> KeySpecifierComponent for Twhere
T: KeySpecifierComponentViaDisplayFromStr + ?Sized,
source§fn from_component(s: &Slug) -> Result<T, InvalidKeyPathComponentValue>
fn from_component(s: &Slug) -> Result<T, InvalidKeyPathComponentValue>
Try to convert
c into an object of this type.