pub struct State<'a> { /* private fields */ }Expand description
State impl
depends on: Manifest YAML meta data(_state, _store, _load) func: placeholder resolution, self calling, store CRUD
Implementations§
Source§impl<'a> State<'a>
impl<'a> State<'a>
Sourcepub fn new(manifest: &'a mut dyn ManifestTrait, load: Load<'a>) -> Self
pub fn new(manifest: &'a mut dyn ManifestTrait, load: Load<'a>) -> Self
create a new State instance
Sourcepub fn with_in_memory(self, client: &'a mut dyn InMemoryClient) -> Self
pub fn with_in_memory(self, client: &'a mut dyn InMemoryClient) -> Self
move InMemoryClient ownership
Sourcepub fn with_kvs_client(self, client: &'a mut dyn KVSClient) -> Self
pub fn with_kvs_client(self, client: &'a mut dyn KVSClient) -> Self
move KVSClient ownership
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for State<'a>
impl<'a> !RefUnwindSafe for State<'a>
impl<'a> !Send for State<'a>
impl<'a> !Sync for State<'a>
impl<'a> Unpin for State<'a>
impl<'a> !UnwindSafe for State<'a>
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