mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-07-26 12:12:50 +02:00
docs
This commit is contained in:
parent
85b5f0c5e0
commit
b53dc62aba
1 changed files with 0 additions and 1 deletions
|
@ -21,7 +21,6 @@ use crate::util::hex::HEX_CHARS;
|
||||||
pub struct NetworkId(NonZeroU64);
|
pub struct NetworkId(NonZeroU64);
|
||||||
|
|
||||||
impl NetworkId {
|
impl NetworkId {
|
||||||
/// Get an address from a 64-bit integer or return None if it is zero or reserved.
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn from_u64(i: u64) -> Option<NetworkId> {
|
pub fn from_u64(i: u64) -> Option<NetworkId> {
|
||||||
NonZeroU64::new(i).map(|i| Self(i))
|
NonZeroU64::new(i).map(|i| Self(i))
|
||||||
|
|
Loading…
Add table
Reference in a new issue