pub struct DiscoveryServiceName { /* private fields */ }Implementations§
Source§impl DiscoveryServiceName
impl DiscoveryServiceName
pub fn from_fullname( value: impl Into<String>, transport: DiscoveryTransport, ) -> Result<DiscoveryServiceName, DiscoveryServiceNameError>
pub fn from_instance( instance: &str, transport: DiscoveryTransport, ) -> Result<DiscoveryServiceName, DiscoveryServiceNameError>
pub fn as_str(&self) -> &str
pub const fn transport(&self) -> DiscoveryTransport
Trait Implementations§
Source§impl Clone for DiscoveryServiceName
impl Clone for DiscoveryServiceName
Source§fn clone(&self) -> DiscoveryServiceName
fn clone(&self) -> DiscoveryServiceName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoveryServiceName
impl Debug for DiscoveryServiceName
Source§impl Display for DiscoveryServiceName
impl Display for DiscoveryServiceName
impl Eq for DiscoveryServiceName
Source§impl Hash for DiscoveryServiceName
impl Hash for DiscoveryServiceName
Source§impl Ord for DiscoveryServiceName
impl Ord for DiscoveryServiceName
Source§fn cmp(&self, other: &DiscoveryServiceName) -> Ordering
fn cmp(&self, other: &DiscoveryServiceName) -> Ordering
1.21.0 (const: unstable) · 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 DiscoveryServiceName
impl PartialEq for DiscoveryServiceName
Source§impl PartialOrd for DiscoveryServiceName
impl PartialOrd for DiscoveryServiceName
impl StructuralPartialEq for DiscoveryServiceName
Auto Trait Implementations§
impl Freeze for DiscoveryServiceName
impl RefUnwindSafe for DiscoveryServiceName
impl Send for DiscoveryServiceName
impl Sync for DiscoveryServiceName
impl Unpin for DiscoveryServiceName
impl UnsafeUnpin for DiscoveryServiceName
impl UnwindSafe for DiscoveryServiceName
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