pub struct InterruptRequest { /* private fields */ }Expand description
Immutable interrupt request committed with its registration journal fact.
Implementations§
Source§impl InterruptRequest
impl InterruptRequest
Sourcepub fn commit(
intent: InterruptRequestIntent,
journal: JournalHead,
) -> Result<Self, DurableWaitError>
pub fn commit( intent: InterruptRequestIntent, journal: JournalHead, ) -> Result<Self, DurableWaitError>
Materializes a request at the authoritative journal observation.
§Errors
Returns DurableWaitError if scope, event identity, expiry, or
canonical integrity is invalid.
Sourcepub fn restore(
intent: InterruptRequestIntent,
marker: &RunInterrupt,
journal: JournalHead,
digest: Digest,
) -> Result<Self, DurableWaitError>
pub fn restore( intent: InterruptRequestIntent, marker: &RunInterrupt, journal: JournalHead, digest: Digest, ) -> Result<Self, DurableWaitError>
Restores and verifies a persisted request.
§Errors
Returns DurableWaitError::RecordDigestMismatch after mutation.
Sourcepub const fn intent(&self) -> &InterruptRequestIntent
pub const fn intent(&self) -> &InterruptRequestIntent
Returns the immutable pre-commit intent.
Sourcepub const fn marker(&self) -> &RunInterrupt
pub const fn marker(&self) -> &RunInterrupt
Returns the compact lifecycle marker.
Sourcepub const fn journal(&self) -> &JournalHead
pub const fn journal(&self) -> &JournalHead
Returns the exact registration journal head.
Sourcepub fn head(&self) -> InterruptRequestHead
pub fn head(&self) -> InterruptRequestHead
Returns a compact integrity-verifiable resolution anchor.
Trait Implementations§
Source§impl Clone for InterruptRequest
impl Clone for InterruptRequest
Source§impl Debug for InterruptRequest
impl Debug for InterruptRequest
Source§impl<'de> Deserialize<'de> for InterruptRequest
impl<'de> Deserialize<'de> for InterruptRequest
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 InterruptRequest
Source§impl JsonSchema for InterruptRequest
impl JsonSchema for InterruptRequest
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 InterruptRequest
impl PartialEq for InterruptRequest
Source§impl Serialize for InterruptRequest
impl Serialize for InterruptRequest
impl StructuralPartialEq for InterruptRequest
Auto Trait Implementations§
impl Forget for InterruptRequest
impl Freeze for InterruptRequest
impl Move for InterruptRequest
impl RefUnwindSafe for InterruptRequest
impl Send for InterruptRequest
impl Sync for InterruptRequest
impl Unpin for InterruptRequest
impl UnsafeUnpin for InterruptRequest
impl UnwindSafe for InterruptRequest
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