pub struct FakeComponent { /* private fields */ }Expand description
Deterministic component fake for lifecycle tests.
Implementations§
Source§impl FakeComponent
impl FakeComponent
Sourcepub fn start_count(&self) -> usize
pub fn start_count(&self) -> usize
Number of successful start calls.
Sourcepub fn stop_count(&self) -> usize
pub fn stop_count(&self) -> usize
Number of successful stop calls.
Trait Implementations§
Source§impl Component for FakeComponent
impl Component for FakeComponent
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AppResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the component. Read more
Auto Trait Implementations§
impl !Freeze for FakeComponent
impl RefUnwindSafe for FakeComponent
impl Send for FakeComponent
impl Sync for FakeComponent
impl Unpin for FakeComponent
impl UnsafeUnpin for FakeComponent
impl UnwindSafe for FakeComponent
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