pub struct StateReplica {
pub state: EngineState,
pub applied_sequence: u64,
pub complete: bool,
pub assets: Collections,
pub project_changes: u64,
pub assets_changes: u64,
/* private fields */
}Fields§
§state: EngineState§applied_sequence: u64The number of the newest action of this interface the engine applied.
complete: boolWhether a full state has arrived; updates before it are ignored.
assets: CollectionsThe engine’s assets.
project_changes: u64Counts the messages that may have changed the project: full states and updates with a project change. An interface compares its own project with the engine’s only when this moved.
assets_changes: u64Counts the messages that changed the assets, so an interface rebuilds what it derives from them only when this moved.
Implementations§
Source§impl StateReplica
impl StateReplica
Sourcepub fn apply(&mut self, message: &ServerMessage) -> bool
pub fn apply(&mut self, message: &ServerMessage) -> bool
Takes a message. Returns whether the state changed.
Trait Implementations§
Source§impl Clone for StateReplica
impl Clone for StateReplica
Source§impl Debug for StateReplica
impl Debug for StateReplica
Auto Trait Implementations§
impl !RefUnwindSafe for StateReplica
impl !UnwindSafe for StateReplica
impl Freeze for StateReplica
impl Send for StateReplica
impl Sync for StateReplica
impl Unpin for StateReplica
impl UnsafeUnpin for StateReplica
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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