Struct DaemonRegistry
pub struct DaemonRegistry { /* private fields */ }Implementations§
Source§impl DaemonRegistry
impl DaemonRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
Create an empty registry. Missing starters are treated as unwired
optional subsystems by daemon::run.
pub fn register_gateway( &mut self, starter: Box<dyn Fn(String, u16, Config, Option<Sender<Value>>, Option<GatewayReloadControls>, Option<Arc<TuiRegistry>>, Option<GatewayReadinessReporter>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
pub fn register_channels( &mut self, starter: Box<dyn Fn(Config, CancellationToken) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
pub fn register_socket( &mut self, starter: Box<dyn Fn(Arc<RpcContext>, CancellationToken, Arc<AtomicUsize>, Option<SocketReadinessReporter>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
pub fn register_wss( &mut self, starter: Box<dyn Fn(Arc<RpcContext>, CancellationToken, Arc<AtomicUsize>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
pub fn register_relay( &mut self, starter: Box<dyn Fn(Arc<RpcContext>, CancellationToken, Arc<AtomicUsize>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
Sourcepub fn register_enroll(
&mut self,
starter: Box<dyn Fn(Arc<RpcContext>, CancellationToken, Arc<AtomicUsize>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>,
) -> &mut Self
pub fn register_enroll( &mut self, starter: Box<dyn Fn(Arc<RpcContext>, CancellationToken, Arc<AtomicUsize>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
Register the certificate enrollment endpoint (the bootstrap surface a
certless client reaches for its first cert). Supervised like the WSS
listener; the starter parks when [enroll] is disabled.
pub fn register_mqtt( &mut self, starter: Box<dyn Fn(MqttConfig) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>, ) -> &mut Self
Sourcepub fn set_sop_engine(
&mut self,
sop_engine: Option<Arc<Mutex<SopEngine>>>,
sop_audit: Option<Arc<SopAuditLogger>>,
) -> &mut Self
pub fn set_sop_engine( &mut self, sop_engine: Option<Arc<Mutex<SopEngine>>>, sop_audit: Option<Arc<SopAuditLogger>>, ) -> &mut Self
Set the shared SOP engine for this daemon iteration.
Trait Implementations§
Source§impl Default for DaemonRegistry
impl Default for DaemonRegistry
Source§fn default() -> DaemonRegistry
fn default() -> DaemonRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DaemonRegistry
impl !UnwindSafe for DaemonRegistry
impl Freeze for DaemonRegistry
impl Send for DaemonRegistry
impl Sync for DaemonRegistry
impl Unpin for DaemonRegistry
impl UnsafeUnpin for DaemonRegistry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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