pub struct Pathway { /* private fields */ }
Implementations§
Source§impl Pathway
impl Pathway
pub fn new(local: EndpointAddr, remote: EndpointAddr) -> Pathway
pub fn local(&self) -> EndpointAddr
pub fn remote(&self) -> EndpointAddr
pub fn flip(self) -> Pathway
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pathway
impl<'de> Deserialize<'de> for Pathway
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pathway, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pathway, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Pathway
impl Serialize for Pathway
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Pathway
impl Eq for Pathway
impl StructuralPartialEq for Pathway
Auto Trait Implementations§
impl Freeze for Pathway
impl RefUnwindSafe for Pathway
impl Send for Pathway
impl Sync for Pathway
impl Unpin for Pathway
impl UnwindSafe for Pathway
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