pub struct GithubRunAttemptLogIdentity { /* private fields */ }Expand description
Immutable identity for one exact repository workflow run attempt.
Implementations§
Source§impl GithubRunAttemptLogIdentity
impl GithubRunAttemptLogIdentity
Sourcepub fn from_terminal_run(
repository: Repository,
run: &RunSnapshot,
) -> Result<Self, GithubJobLogConfigError>
pub fn from_terminal_run( repository: Repository, run: &RunSnapshot, ) -> Result<Self, GithubJobLogConfigError>
Bind a completion-capable identity to one validated terminal run snapshot.
§Errors
Rejects a nonterminal snapshot or an attempt outside the canonical sequence bound.
Sourcepub const fn repository(&self) -> &Repository
pub const fn repository(&self) -> &Repository
Exact repository.
Sourcepub const fn attempt(&self) -> GithubRunAttempt
pub const fn attempt(&self) -> GithubRunAttempt
Exact run attempt.
Sourcepub const fn workflow_id(&self) -> WorkflowId
pub const fn workflow_id(&self) -> WorkflowId
Exact workflow ID from the already-validated run handle.
Sourcepub fn expected_completion_source_sequence(&self) -> u64
pub fn expected_completion_source_sequence(&self) -> u64
Reserved source sequence for this attempt’s append-last 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 append-last completion marker.
§Errors
Rejects any noncanonical, mismatched, forged, or out-of-bounds marker.
Trait Implementations§
Source§impl Clone for GithubRunAttemptLogIdentity
impl Clone for GithubRunAttemptLogIdentity
Source§impl Debug for GithubRunAttemptLogIdentity
impl Debug for GithubRunAttemptLogIdentity
impl Eq for GithubRunAttemptLogIdentity
impl StructuralPartialEq for GithubRunAttemptLogIdentity
Auto Trait Implementations§
impl Freeze for GithubRunAttemptLogIdentity
impl RefUnwindSafe for GithubRunAttemptLogIdentity
impl Send for GithubRunAttemptLogIdentity
impl Sync for GithubRunAttemptLogIdentity
impl Unpin for GithubRunAttemptLogIdentity
impl UnsafeUnpin for GithubRunAttemptLogIdentity
impl UnwindSafe for GithubRunAttemptLogIdentity
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.