pub struct WorkflowLimits { /* private fields */ }Expand description
Bounded execution and artifact-retention policy.
Implementations§
Source§impl WorkflowLimits
impl WorkflowLimits
Sourcepub fn new(
compile_timeout_minutes: u16,
signing_timeout_minutes: u16,
retention_days: u16,
) -> Result<Self, WorkflowConfigError>
pub fn new( compile_timeout_minutes: u16, signing_timeout_minutes: u16, retention_days: u16, ) -> Result<Self, WorkflowConfigError>
Construct bounded compile/signing timeouts and artifact retention.
§Errors
Compile must be 5–180 minutes, signing 5–60 minutes, and retention 1–14 days.
Sourcepub fn secure_defaults() -> Self
pub fn secure_defaults() -> Self
Default 90-minute compile, 30-minute signing, and three-day retention.
§Panics
This cannot panic because the constants satisfy the documented bounds.
Sourcepub const fn compile_timeout_minutes(self) -> u16
pub const fn compile_timeout_minutes(self) -> u16
Compile-job timeout in minutes.
Sourcepub const fn signing_timeout_minutes(self) -> u16
pub const fn signing_timeout_minutes(self) -> u16
Signing-job timeout in minutes.
Sourcepub const fn retention_days(self) -> u16
pub const fn retention_days(self) -> u16
Artifact retention in days.
Trait Implementations§
Source§impl Clone for WorkflowLimits
impl Clone for WorkflowLimits
impl Copy for WorkflowLimits
Source§impl Debug for WorkflowLimits
impl Debug for WorkflowLimits
impl Eq for WorkflowLimits
Source§impl PartialEq for WorkflowLimits
impl PartialEq for WorkflowLimits
impl StructuralPartialEq for WorkflowLimits
Auto Trait Implementations§
impl Freeze for WorkflowLimits
impl RefUnwindSafe for WorkflowLimits
impl Send for WorkflowLimits
impl Sync for WorkflowLimits
impl Unpin for WorkflowLimits
impl UnsafeUnpin for WorkflowLimits
impl UnwindSafe for WorkflowLimits
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.