pub struct ComponentStatusInfo<P, E> {
pub wait_status: Box<[WaitStatus<P, E>]>,
pub timeout: Duration,
pub start_time: Instant,
pub name: String,
}
Expand description
A generic structure which contains the status information for each component. There is enough information here to determine the
Fields§
§wait_status: Box<[WaitStatus<P, E>]>
§timeout: Duration
§start_time: Instant
§name: String
Implementations§
Source§impl<P, E> ComponentStatusInfo<P, E>
impl<P, E> ComponentStatusInfo<P, E>
pub fn not_present(name: String) -> Self
pub fn init_waiting(name: String, timeout: Duration, count: usize) -> Self
pub fn is_waiting(&self) -> bool
pub fn is_present(&self) -> bool
pub fn has_error(&self) -> bool
Trait Implementations§
Source§impl<P: Clone, E: Clone> Clone for ComponentStatusInfo<P, E>
impl<P: Clone, E: Clone> Clone for ComponentStatusInfo<P, E>
Source§fn clone(&self) -> ComponentStatusInfo<P, E>
fn clone(&self) -> ComponentStatusInfo<P, E>
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 moreAuto Trait Implementations§
impl<P, E> Freeze for ComponentStatusInfo<P, E>
impl<P, E> RefUnwindSafe for ComponentStatusInfo<P, E>where
P: RefUnwindSafe,
E: RefUnwindSafe,
impl<P, E> Send for ComponentStatusInfo<P, E>
impl<P, E> Sync for ComponentStatusInfo<P, E>
impl<P, E> Unpin for ComponentStatusInfo<P, E>
impl<P, E> UnwindSafe for ComponentStatusInfo<P, E>where
P: UnwindSafe,
E: UnwindSafe,
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