pub struct CoreNodeConfig {
pub hostname: String,
pub agent_version: &'static str,
pub poll_secs: u64,
pub advertise_datagram_alpn: bool,
pub advertise_recording_alpn: bool,
pub kind: &'static str,
pub on_kill_ssh: Option<KillSshHook>,
pub enable_mdns: bool,
pub enable_gossip: bool,
pub keep_alive: bool,
}Fields§
§hostname: String§agent_version: &'static str§poll_secs: u64§advertise_datagram_alpn: bool§advertise_recording_alpn: boolAdvertise tunnet/recording/1 (this node can receive session recordings).
kind: &'static str§on_kill_ssh: Option<KillSshHook>Optional hook when CP requests killing an SSH session (session_id string).
enable_mdns: boolEnable mDNS LAN address lookup (Direct default: true).
enable_gossip: boolAdvertise/run shared iroh-gossip (Managed needs this for presence + service relay).
keep_alive: boolKeep all peer connections open (Managed default: true; Direct default: false = on-demand).
Trait Implementations§
Source§impl Clone for CoreNodeConfig
impl Clone for CoreNodeConfig
Auto Trait Implementations§
impl !RefUnwindSafe for CoreNodeConfig
impl !UnwindSafe for CoreNodeConfig
impl Freeze for CoreNodeConfig
impl Send for CoreNodeConfig
impl Sync for CoreNodeConfig
impl Unpin for CoreNodeConfig
impl UnsafeUnpin for CoreNodeConfig
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