pub struct CoreNode {Show 16 fields
pub identity: AgentIdentity,
pub persisted: PersistedState,
pub endpoint: Endpoint,
pub pool: ConnPool,
pub routes: RoutingTable,
pub acl: AclEngine,
pub version: Arc<ArcSwap<u64>>,
pub self_ipv4: Ipv4Addr,
pub paths: StatePaths,
pub serves: ServeManager,
pub tunnels: TunnelManager,
pub send: SendManager,
pub signed: Option<SignedClient>,
pub direct_auth: Option<AuthCache>,
pub direct: HashMap<Uuid, DirectNetworkRuntime>,
pub gossip: Option<Gossip>,
}Fields§
§identity: AgentIdentity§persisted: PersistedState§endpoint: Endpoint§pool: ConnPool§routes: RoutingTable§acl: AclEngine§version: Arc<ArcSwap<u64>>§self_ipv4: Ipv4Addr§paths: StatePaths§serves: ServeManager§tunnels: TunnelManager§send: SendManager§signed: Option<SignedClient>Present only in Managed mode.
direct_auth: Option<AuthCache>Direct-mode auth cache (None in Managed).
direct: HashMap<Uuid, DirectNetworkRuntime>Per-network Direct runtime (empty in Managed).
gossip: Option<Gossip>Shared agent Gossip (Managed). Direct uses DocsMembership::gossip instead.
Implementations§
Source§impl CoreNode
impl CoreNode
Sourcepub fn docs(&self) -> Option<&DocsMembership>
pub fn docs(&self) -> Option<&DocsMembership>
First Direct network docs (compat helper).
Sourcepub fn firewall(&self) -> Option<&FirewallEngine>
pub fn firewall(&self) -> Option<&FirewallEngine>
First Direct network firewall (compat helper).
pub fn firewall_for(&self, network_id: Uuid) -> Option<&FirewallEngine>
pub fn docs_for(&self, network_id: Uuid) -> Option<&DocsMembership>
pub fn spoof_tracker(&self) -> Option<&SpoofTracker>
pub fn spoof_for(&self, network_id: Uuid) -> Option<&SpoofTracker>
Sourcepub async fn bootstrap(
identity: AgentIdentity,
persisted: PersistedState,
paths: StatePaths,
cfg: CoreNodeConfig,
) -> Result<Self>
pub async fn bootstrap( identity: AgentIdentity, persisted: PersistedState, paths: StatePaths, cfg: CoreNodeConfig, ) -> Result<Self>
Bootstrap based on persisted mode.
Shared Gossip for presence / service-relay topics. Direct: primary network docs gossip. Managed: agent-owned gossip.
pub fn endpoint_id_hex(&self) -> String
pub fn require_signed(&self) -> Result<&SignedClient>
pub async fn shutdown(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CoreNode
impl !UnwindSafe for CoreNode
impl Freeze for CoreNode
impl Send for CoreNode
impl Sync for CoreNode
impl Unpin for CoreNode
impl UnsafeUnpin for CoreNode
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more