pub struct ApiModuleAdapter { /* private fields */ }Expand description
A convenience wrapper for the API module which is always started
immediately (it doesn’t wait for start_services()) and should
always be restarted on failure.
This is functionally identical to ModuleAdapter::always_restart()
but has a dedicated type for clarity in the supervisor setup code.
Implementations§
Trait Implementations§
Source§impl Debug for ApiModuleAdapter
impl Debug for ApiModuleAdapter
Source§impl JanusService for ApiModuleAdapter
impl JanusService for ApiModuleAdapter
Source§fn name(&self) -> &str
fn name(&self) -> &str
Returns the unique name of the service for logging, metrics, and
supervisor identification. Read more
Source§fn restart_policy(&self) -> RestartPolicy
fn restart_policy(&self) -> RestartPolicy
The restart policy for this service. Read more
Auto Trait Implementations§
impl Freeze for ApiModuleAdapter
impl !RefUnwindSafe for ApiModuleAdapter
impl Send for ApiModuleAdapter
impl Sync for ApiModuleAdapter
impl Unpin for ApiModuleAdapter
impl UnsafeUnpin for ApiModuleAdapter
impl !UnwindSafe for ApiModuleAdapter
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