pub struct SwitchboardHealth {
pub health: Arc<RwLock<HealthStatus>>,
}Fields§
§health: Arc<RwLock<HealthStatus>>Implementations§
Source§impl SwitchboardHealth
impl SwitchboardHealth
pub async fn get_or_init() -> &'static SwitchboardHealth
pub async fn initialize() -> SwitchboardHealth
pub async fn set_is_ready(&self)
pub async fn set_is_not_ready(&self)
Trait Implementations§
Source§impl Clone for SwitchboardHealth
impl Clone for SwitchboardHealth
Source§fn clone(&self) -> SwitchboardHealth
fn clone(&self) -> SwitchboardHealth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwitchboardHealth
impl Debug for SwitchboardHealth
Source§impl Default for SwitchboardHealth
impl Default for SwitchboardHealth
Source§fn default() -> SwitchboardHealth
fn default() -> SwitchboardHealth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SwitchboardHealth
impl !RefUnwindSafe for SwitchboardHealth
impl Send for SwitchboardHealth
impl Sync for SwitchboardHealth
impl Unpin for SwitchboardHealth
impl !UnwindSafe for SwitchboardHealth
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