pub struct NodeIdentity {
pub id: String,
pub hostname: String,
pub name: String,
pub dns_name: Option<String>,
pub ip: Option<IpAddr>,
}Expand description
Identity of the local node on the network.
Fields§
§id: StringStable node ID from the network provider.
hostname: StringHostname on the network.
name: StringHuman-readable display name.
dns_name: Option<String>DNS name on the tailnet.
ip: Option<IpAddr>Tailscale IP address.
Trait Implementations§
Source§impl Clone for NodeIdentity
impl Clone for NodeIdentity
Source§fn clone(&self) -> NodeIdentity
fn clone(&self) -> NodeIdentity
Returns a duplicate 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 Debug for NodeIdentity
impl Debug for NodeIdentity
Source§impl Default for NodeIdentity
impl Default for NodeIdentity
Source§fn default() -> NodeIdentity
fn default() -> NodeIdentity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeIdentity
impl RefUnwindSafe for NodeIdentity
impl Send for NodeIdentity
impl Sync for NodeIdentity
impl Unpin for NodeIdentity
impl UnsafeUnpin for NodeIdentity
impl UnwindSafe for NodeIdentity
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