pub struct Replica<App> {
pub index: ReplicaIndex,
pub init: bool,
pub app: App,
}Expand description
Designing everything for a pratical system is hard. Designing everything
correctly is impossible. That’s why a versioned spec module is prepared.
At any time top level module does wildcard re-exporting from the latest
version of spec. To survive from a breaking change, change use crate::*
to use crate::spec::v1::*.
Fields§
§index: ReplicaIndex§init: bool§app: AppTrait Implementations§
Auto Trait Implementations§
impl<App> Freeze for Replica<App>where
App: Freeze,
impl<App> RefUnwindSafe for Replica<App>where
App: RefUnwindSafe,
impl<App> Send for Replica<App>where
App: Send,
impl<App> Sync for Replica<App>where
App: Sync,
impl<App> Unpin for Replica<App>where
App: Unpin,
impl<App> UnwindSafe for Replica<App>where
App: UnwindSafe,
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