pub struct OnionServiceMapping { /* private fields */ }
Expand description
Mapping from an Onion service virtual port to a local listen address
Implementations§
Source§impl OnionServiceMapping
impl OnionServiceMapping
pub fn new(virt_port: u16, listen_address: Option<TorSocketAddr>) -> Self
pub fn virt_port(&self) -> u16
pub fn listen_address(&self) -> &TorSocketAddr
Trait Implementations§
Source§impl Clone for OnionServiceMapping
impl Clone for OnionServiceMapping
Source§fn clone(&self) -> OnionServiceMapping
fn clone(&self) -> OnionServiceMapping
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 OnionServiceMapping
impl Debug for OnionServiceMapping
Source§impl<'de> Deserialize<'de> for OnionServiceMapping
impl<'de> Deserialize<'de> for OnionServiceMapping
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 Ord for OnionServiceMapping
impl Ord for OnionServiceMapping
Source§fn cmp(&self, other: &OnionServiceMapping) -> Ordering
fn cmp(&self, other: &OnionServiceMapping) -> 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 OnionServiceMapping
impl PartialEq for OnionServiceMapping
Source§impl PartialOrd for OnionServiceMapping
impl PartialOrd for OnionServiceMapping
Source§impl Serialize for OnionServiceMapping
impl Serialize for OnionServiceMapping
impl Eq for OnionServiceMapping
impl StructuralPartialEq for OnionServiceMapping
Auto Trait Implementations§
impl Freeze for OnionServiceMapping
impl RefUnwindSafe for OnionServiceMapping
impl Send for OnionServiceMapping
impl Sync for OnionServiceMapping
impl Unpin for OnionServiceMapping
impl UnwindSafe for OnionServiceMapping
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