pub struct InMemoryController { /* private fields */ }Implementations§
Source§impl InMemoryController
impl InMemoryController
pub fn new(state: AppModel) -> Self
pub fn snapshot(&self) -> ControllerSnapshot
pub fn handle( &self, command: ControlCommand, ) -> Result<ControlResponse, DomainError>
Trait Implementations§
Source§impl Clone for InMemoryController
impl Clone for InMemoryController
Source§fn clone(&self) -> InMemoryController
fn clone(&self) -> InMemoryController
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 Freeze for InMemoryController
impl RefUnwindSafe for InMemoryController
impl Send for InMemoryController
impl Sync for InMemoryController
impl Unpin for InMemoryController
impl UnsafeUnpin for InMemoryController
impl UnwindSafe for InMemoryController
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