Struct address::EndpointRef
source · pub struct EndpointRef<'a> { /* private fields */ }
Expand description
A domain reference with an associated port.
Implementations§
source§impl<'a> EndpointRef<'a>
impl<'a> EndpointRef<'a>
Conversions
sourcepub fn to_endpoint(&self) -> Endpoint
pub fn to_endpoint(&self) -> Endpoint
Converts the endpoint reference to an endpoint.
Converts the endpoint reference to an authority.
source§impl<'a> EndpointRef<'a>
impl<'a> EndpointRef<'a>
Construction
Trait Implementations§
source§impl<'a> Clone for EndpointRef<'a>
impl<'a> Clone for EndpointRef<'a>
source§fn clone(&self) -> EndpointRef<'a>
fn clone(&self) -> EndpointRef<'a>
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<'a> Debug for EndpointRef<'a>
impl<'a> Debug for EndpointRef<'a>
source§impl<'a> Display for EndpointRef<'a>
impl<'a> Display for EndpointRef<'a>
source§impl<'a> From<EndpointRef<'a>> for Endpoint
impl<'a> From<EndpointRef<'a>> for Endpoint
source§fn from(endpoint: EndpointRef<'a>) -> Self
fn from(endpoint: EndpointRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for EndpointRef<'a>
impl<'a> Hash for EndpointRef<'a>
source§impl<'a> Ord for EndpointRef<'a>
impl<'a> Ord for EndpointRef<'a>
source§fn cmp(&self, other: &EndpointRef<'a>) -> Ordering
fn cmp(&self, other: &EndpointRef<'a>) -> 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<'a> PartialEq for EndpointRef<'a>
impl<'a> PartialEq for EndpointRef<'a>
source§fn eq(&self, other: &EndpointRef<'a>) -> bool
fn eq(&self, other: &EndpointRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for EndpointRef<'a>
impl<'a> PartialOrd for EndpointRef<'a>
source§fn partial_cmp(&self, other: &EndpointRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &EndpointRef<'a>) -> 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 moreimpl<'a> Copy for EndpointRef<'a>
impl<'a> Eq for EndpointRef<'a>
impl<'a> StructuralPartialEq for EndpointRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for EndpointRef<'a>
impl<'a> RefUnwindSafe for EndpointRef<'a>
impl<'a> Send for EndpointRef<'a>
impl<'a> Sync for EndpointRef<'a>
impl<'a> Unpin for EndpointRef<'a>
impl<'a> UnwindSafe for EndpointRef<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)