pub struct OnionAddress { /* private fields */ }Expand description
Onion address, containing a TorServiceId and a service port
Implementations§
Source§impl OnionAddress
impl OnionAddress
pub fn new(service_id: TorServiceId, port: u16) -> Self
pub fn service_id(&self) -> &TorServiceId
pub fn hostname(&self) -> String
pub fn service_port(&self) -> u16
Trait Implementations§
Source§impl Clone for OnionAddress
impl Clone for OnionAddress
Source§fn clone(&self) -> OnionAddress
fn clone(&self) -> OnionAddress
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 OnionAddress
impl Debug for OnionAddress
Source§impl<'de> Deserialize<'de> for OnionAddress
impl<'de> Deserialize<'de> for OnionAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OnionAddress
impl Display for OnionAddress
Source§impl FromStr for OnionAddress
impl FromStr for OnionAddress
Source§impl Hash for OnionAddress
impl Hash for OnionAddress
Source§impl<'a> IntoTargetAddr<'a> for OnionAddress
impl<'a> IntoTargetAddr<'a> for OnionAddress
Source§fn into_target_addr(self) -> Result<TargetAddr<'a>>
fn into_target_addr(self) -> Result<TargetAddr<'a>>
Converts the value of self to a
TargetAddr.Source§impl PartialEq for OnionAddress
impl PartialEq for OnionAddress
Source§impl Serialize for OnionAddress
impl Serialize for OnionAddress
impl Eq for OnionAddress
impl StructuralPartialEq for OnionAddress
Auto Trait Implementations§
impl Freeze for OnionAddress
impl RefUnwindSafe for OnionAddress
impl Send for OnionAddress
impl Sync for OnionAddress
impl Unpin for OnionAddress
impl UnwindSafe for OnionAddress
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§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