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<SocketAddr>) -> Self
pub fn virt_port(&self) -> u16
pub fn listen_address(&self) -> &SocketAddr
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§fn eq(&self, other: &OnionServiceMapping) -> bool
 
fn eq(&self, other: &OnionServiceMapping) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for OnionServiceMapping
 
impl PartialOrd for OnionServiceMapping
source§fn partial_cmp(&self, other: &OnionServiceMapping) -> Option<Ordering>
 
fn partial_cmp(&self, other: &OnionServiceMapping) -> 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 moresource§impl Serialize for OnionServiceMapping
 
impl Serialize for OnionServiceMapping
impl Eq for OnionServiceMapping
impl StructuralEq for OnionServiceMapping
impl StructuralPartialEq for OnionServiceMapping
Auto Trait Implementations§
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