pub struct MockAutoSource { /* private fields */ }Expand description
In-memory AutoSource used by tests and offline paths.
Flips the stored mode on On / Off, returns it on
Status. changed is computed by comparing the requested
action against the current mode, matching the production
adapter’s contract.
Implementations§
Trait Implementations§
Source§impl AutoSource for MockAutoSource
impl AutoSource for MockAutoSource
Source§fn act(&self, action: AutoRequest) -> Result<AutoReply, SupervisorError>
fn act(&self, action: AutoRequest) -> Result<AutoReply, SupervisorError>
Issue an Auto-mode action. Read more
Source§impl Debug for MockAutoSource
impl Debug for MockAutoSource
Auto Trait Implementations§
impl !Freeze for MockAutoSource
impl RefUnwindSafe for MockAutoSource
impl Send for MockAutoSource
impl Sync for MockAutoSource
impl Unpin for MockAutoSource
impl UnsafeUnpin for MockAutoSource
impl UnwindSafe for MockAutoSource
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