Struct netmgr::endpoint::EndPointKey
source · [−]pub struct EndPointKey {
source: NodeAddr,
dest: NodeAddr,
flags: ListenFlags,
source_service: ServiceAddr,
dest_service: ServiceAddr,
}
Fields
source: NodeAddr
dest: NodeAddr
flags: ListenFlags
source_service: ServiceAddr
dest_service: ServiceAddr
Implementations
sourceimpl EndPointKey
impl EndPointKey
pub fn source_address(&self) -> (NodeAddr, ServiceAddr)
pub fn dest_address(&self) -> (NodeAddr, ServiceAddr)
pub fn flags(&self) -> ListenFlags
pub fn new(
source: NodeAddr,
dest: NodeAddr,
flags: ListenFlags,
source_service: ServiceAddr,
dest_service: ServiceAddr
) -> Self
Trait Implementations
sourceimpl Clone for EndPointKey
impl Clone for EndPointKey
sourcefn clone(&self) -> EndPointKey
fn clone(&self) -> EndPointKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EndPointKey
impl Debug for EndPointKey
sourceimpl Ord for EndPointKey
impl Ord for EndPointKey
sourcefn cmp(&self, other: &EndPointKey) -> Ordering
fn cmp(&self, other: &EndPointKey) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<EndPointKey> for EndPointKey
impl PartialEq<EndPointKey> for EndPointKey
sourcefn eq(&self, other: &EndPointKey) -> bool
fn eq(&self, other: &EndPointKey) -> bool
sourceimpl PartialOrd<EndPointKey> for EndPointKey
impl PartialOrd<EndPointKey> for EndPointKey
sourcefn partial_cmp(&self, other: &EndPointKey) -> Option<Ordering>
fn partial_cmp(&self, other: &EndPointKey) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for EndPointKey
impl Eq for EndPointKey
impl StructuralEq for EndPointKey
impl StructuralPartialEq for EndPointKey
Auto Trait Implementations
impl ObjSafe for EndPointKey
impl RefUnwindSafe for EndPointKey
impl Send for EndPointKey
impl Sync for EndPointKey
impl Unpin for EndPointKey
impl UnwindSafe for EndPointKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more