pub struct InterruptResolution { /* private fields */ }Expand description
Immutable authorized resolution committed with its journal fact.
Implementations§
Source§impl InterruptResolution
impl InterruptResolution
Sourcepub fn commit(
intent: InterruptResolutionIntent,
journal: JournalHead,
) -> Result<Self, DurableWaitError>
pub fn commit( intent: InterruptResolutionIntent, journal: JournalHead, ) -> Result<Self, DurableWaitError>
Commits a resolution at the journal’s database-clock observation.
Resolution at the exact exclusive expiry is rejected.
§Errors
Returns DurableWaitError for substituted request/event/scope,
insufficient authority, clock regression, expiry, or integrity failure.
Sourcepub fn restore(
intent: InterruptResolutionIntent,
journal: JournalHead,
digest: Digest,
) -> Result<Self, DurableWaitError>
pub fn restore( intent: InterruptResolutionIntent, journal: JournalHead, digest: Digest, ) -> Result<Self, DurableWaitError>
Restores and verifies a persisted resolution.
§Errors
Returns DurableWaitError::RecordDigestMismatch after mutation.
Sourcepub const fn intent(&self) -> &InterruptResolutionIntent
pub const fn intent(&self) -> &InterruptResolutionIntent
Returns the immutable resolution intent.
Sourcepub const fn journal(&self) -> &JournalHead
pub const fn journal(&self) -> &JournalHead
Returns the exact resolution journal head.
Sourcepub const fn resolved_at(&self) -> Timestamp
pub const fn resolved_at(&self) -> Timestamp
Returns the authoritative resolution observation.
Trait Implementations§
Source§impl Clone for InterruptResolution
impl Clone for InterruptResolution
Source§impl Debug for InterruptResolution
impl Debug for InterruptResolution
Source§impl<'de> Deserialize<'de> for InterruptResolution
impl<'de> Deserialize<'de> for InterruptResolution
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 InterruptResolution
Source§impl JsonSchema for InterruptResolution
impl JsonSchema for InterruptResolution
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 InterruptResolution
impl PartialEq for InterruptResolution
Source§impl Serialize for InterruptResolution
impl Serialize for InterruptResolution
impl StructuralPartialEq for InterruptResolution
Auto Trait Implementations§
impl Forget for InterruptResolution
impl Freeze for InterruptResolution
impl Move for InterruptResolution
impl RefUnwindSafe for InterruptResolution
impl Send for InterruptResolution
impl Sync for InterruptResolution
impl Unpin for InterruptResolution
impl UnsafeUnpin for InterruptResolution
impl UnwindSafe for InterruptResolution
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