pub struct TimerFiring { /* private fields */ }Expand description
Immutable timer firing committed with its journal fact.
Implementations§
Source§impl TimerFiring
impl TimerFiring
Sourcepub fn commit(
intent: TimerFiringIntent,
journal: JournalHead,
) -> Result<Self, DurableWaitError>
pub fn commit( intent: TimerFiringIntent, journal: JournalHead, ) -> Result<Self, DurableWaitError>
Commits a firing at or after its inclusive database-clock due instant.
§Errors
Returns DurableWaitError for scope/event substitution, an early
observation, or integrity failure.
Sourcepub fn restore(
intent: TimerFiringIntent,
journal: JournalHead,
digest: Digest,
) -> Result<Self, DurableWaitError>
pub fn restore( intent: TimerFiringIntent, journal: JournalHead, digest: Digest, ) -> Result<Self, DurableWaitError>
Restores and verifies a persisted firing.
§Errors
Returns DurableWaitError::RecordDigestMismatch after mutation.
Sourcepub const fn intent(&self) -> &TimerFiringIntent
pub const fn intent(&self) -> &TimerFiringIntent
Returns the immutable firing intent.
Sourcepub const fn journal(&self) -> &JournalHead
pub const fn journal(&self) -> &JournalHead
Returns the exact firing journal head.
Trait Implementations§
Source§impl Clone for TimerFiring
impl Clone for TimerFiring
Source§impl Debug for TimerFiring
impl Debug for TimerFiring
Source§impl<'de> Deserialize<'de> for TimerFiring
impl<'de> Deserialize<'de> for TimerFiring
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TimerFiring
Source§impl JsonSchema for TimerFiring
impl JsonSchema for TimerFiring
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TimerFiring
impl PartialEq for TimerFiring
Source§impl Serialize for TimerFiring
impl Serialize for TimerFiring
impl StructuralPartialEq for TimerFiring
Auto Trait Implementations§
impl Forget for TimerFiring
impl Freeze for TimerFiring
impl Move for TimerFiring
impl RefUnwindSafe for TimerFiring
impl Send for TimerFiring
impl Sync for TimerFiring
impl Unpin for TimerFiring
impl UnsafeUnpin for TimerFiring
impl UnwindSafe for TimerFiring
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