pub struct GithubDurableRunAttemptLogIdentity { /* private fields */ }Expand description
Offline-only identity for validating a completion marker restored from durable provider state.
Unlike GithubRunAttemptLogIdentity, this type cannot be passed to the network fetcher. Its
fields must come from the already-bound durable execution repository and terminal run identity.
Implementations§
Source§impl GithubDurableRunAttemptLogIdentity
impl GithubDurableRunAttemptLogIdentity
Sourcepub fn new(
repository: Repository,
run_id: RunId,
attempt: u64,
head_sha: CommitSha,
workflow_id: WorkflowId,
) -> Result<Self, GithubJobLogConfigError>
pub fn new( repository: Repository, run_id: RunId, attempt: u64, head_sha: CommitSha, workflow_id: WorkflowId, ) -> Result<Self, GithubJobLogConfigError>
Restore exact validated fields from a durable provider run identity.
§Errors
Rejects an attempt outside the canonical source-sequence bound.
Sourcepub fn expected_completion_source_sequence(&self) -> u64
pub fn expected_completion_source_sequence(&self) -> u64
Reserved source sequence for this durable attempt’s completion marker.
Sourcepub fn validate_durable_completion_marker<'a>(
&self,
worker_events: impl IntoIterator<Item = (u64, &'a str)>,
occurred_at_ms: u64,
source_sequence: u64,
source_event_sha256: &str,
message: &str,
) -> Result<(), GithubJobLogError>
pub fn validate_durable_completion_marker<'a>( &self, worker_events: impl IntoIterator<Item = (u64, &'a str)>, occurred_at_ms: u64, source_sequence: u64, source_event_sha256: &str, message: &str, ) -> Result<(), GithubJobLogError>
Validate ordered durable Worker lines and their exact completion marker.
§Errors
Rejects any noncanonical, mismatched, forged, or out-of-bounds marker.
Trait Implementations§
impl Eq for GithubDurableRunAttemptLogIdentity
impl StructuralPartialEq for GithubDurableRunAttemptLogIdentity
Auto Trait Implementations§
impl Freeze for GithubDurableRunAttemptLogIdentity
impl RefUnwindSafe for GithubDurableRunAttemptLogIdentity
impl Send for GithubDurableRunAttemptLogIdentity
impl Sync for GithubDurableRunAttemptLogIdentity
impl Unpin for GithubDurableRunAttemptLogIdentity
impl UnsafeUnpin for GithubDurableRunAttemptLogIdentity
impl UnwindSafe for GithubDurableRunAttemptLogIdentity
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.