pub enum CuBridgeLifecycleState {
New(Option<ComponentConfig>),
Start,
Preprocess,
Postprocess,
Stop,
}Expand description
Lifecycle callbacks for bridges when running in simulation.
These mirror the CuBridge trait hooks so a simulator can choose to bypass the real implementation (e.g. to avoid opening hardware) or inject faults.
Variants§
New(Option<ComponentConfig>)
The bridge is about to be constructed. Gives access to config.
Start
The bridge is starting.
Preprocess
Called before the I/O cycle.
Postprocess
Called after the I/O cycle.
Stop
The bridge is stopping.
Auto Trait Implementations§
impl Freeze for CuBridgeLifecycleState
impl RefUnwindSafe for CuBridgeLifecycleState
impl Send for CuBridgeLifecycleState
impl Sync for CuBridgeLifecycleState
impl Unpin for CuBridgeLifecycleState
impl UnsafeUnpin for CuBridgeLifecycleState
impl UnwindSafe for CuBridgeLifecycleState
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
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