pub struct DaemonEndpoint {
pub host: String,
pub port: u16,
}Expand description
A daemon endpoint as advertised by bootstrap.yaml.
host is returned verbatim from the config (or DEFAULT_BIND_HOST);
callers that dial should apply crate::daemon_url to normalize
unroutable listen addresses.
Fields§
§host: String§port: u16Trait Implementations§
Source§impl Clone for DaemonEndpoint
impl Clone for DaemonEndpoint
Source§fn clone(&self) -> DaemonEndpoint
fn clone(&self) -> DaemonEndpoint
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 DaemonEndpoint
impl Debug for DaemonEndpoint
Source§impl Default for DaemonEndpoint
impl Default for DaemonEndpoint
impl Eq for DaemonEndpoint
Source§impl PartialEq for DaemonEndpoint
impl PartialEq for DaemonEndpoint
Source§fn eq(&self, other: &DaemonEndpoint) -> bool
fn eq(&self, other: &DaemonEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DaemonEndpoint
Auto Trait Implementations§
impl Freeze for DaemonEndpoint
impl RefUnwindSafe for DaemonEndpoint
impl Send for DaemonEndpoint
impl Sync for DaemonEndpoint
impl Unpin for DaemonEndpoint
impl UnsafeUnpin for DaemonEndpoint
impl UnwindSafe for DaemonEndpoint
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.