pub struct NativeStateProjection {
pub snapshot: NativeSnapshotIdentity,
pub task: NativeTask,
pub frozen_scope: NativeFrozenScope,
pub job: NativeJob,
pub run: NativeRun,
pub verification: NativeVerification,
pub evidence: NativeEvidence,
pub report: NativeReport,
pub recovery: NativeRecovery,
pub replacement: NativeReplacement,
/* private fields */
}Fields§
§snapshot: NativeSnapshotIdentity§task: NativeTask§frozen_scope: NativeFrozenScope§job: NativeJob§run: NativeRun§verification: NativeVerification§evidence: NativeEvidence§report: NativeReport§recovery: NativeRecovery§replacement: NativeReplacementImplementations§
Source§impl NativeStateProjection
impl NativeStateProjection
pub fn from_store( store: &EventStore, session_id: &str, ) -> Result<Self, NativeProjectionError>
pub fn project( store: &EventStore, session_id: &str, ) -> Result<Self, NativeProjectionError>
pub fn from_session( store: &EventStore, session: &Session, ) -> Result<Self, NativeProjectionError>
pub fn surfaces(&self) -> &NativeSurfaceSet
pub fn surface(&self, family: NativeSurfaceFamily) -> &Surface
pub fn is_stale( &self, store: &EventStore, ) -> Result<bool, NativeProjectionError>
pub fn refresh(&self, store: &EventStore) -> Result<Self, NativeProjectionError>
pub fn render( &self, store: &EventStore, family: NativeSurfaceFamily, terminal_width: usize, ) -> Result<String, NativeProjectionError>
Trait Implementations§
Source§impl Clone for NativeStateProjection
impl Clone for NativeStateProjection
Source§fn clone(&self) -> NativeStateProjection
fn clone(&self) -> NativeStateProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeStateProjection
impl Debug for NativeStateProjection
Source§impl PartialEq for NativeStateProjection
impl PartialEq for NativeStateProjection
impl StructuralPartialEq for NativeStateProjection
Auto Trait Implementations§
impl Freeze for NativeStateProjection
impl RefUnwindSafe for NativeStateProjection
impl Send for NativeStateProjection
impl Sync for NativeStateProjection
impl Unpin for NativeStateProjection
impl UnsafeUnpin for NativeStateProjection
impl UnwindSafe for NativeStateProjection
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