pub struct UpdatePolicy { /* private fields */ }Expand description
Resource and lifecycle policy for an updater.
Implementations§
Source§impl UpdatePolicy
impl UpdatePolicy
Sourcepub fn with_transport(self, transport: ArtifactTransportPolicy) -> Self
pub fn with_transport(self, transport: ArtifactTransportPolicy) -> Self
Replaces the artifact transport policy.
Sourcepub fn with_max_artifact_bytes(self, bytes: u64) -> Result<Self>
pub fn with_max_artifact_bytes(self, bytes: u64) -> Result<Self>
Replaces the maximum artifact size.
Sourcepub fn with_validation_timeout(self, timeout: Duration) -> Result<Self>
pub fn with_validation_timeout(self, timeout: Duration) -> Result<Self>
Replaces the validation timeout.
Sourcepub fn with_max_unconfirmed_restarts(self, attempts: u32) -> Result<Self>
pub fn with_max_unconfirmed_restarts(self, attempts: u32) -> Result<Self>
Replaces the number of unconfirmed restarts allowed before rollback.
pub fn with_backup_strategy(self, strategy: BackupStrategy) -> Self
pub fn transport(&self) -> ArtifactTransportPolicy
pub fn max_artifact_bytes(&self) -> u64
pub fn validation_timeout(&self) -> Duration
pub fn max_unconfirmed_restarts(&self) -> u32
pub fn backup_strategy(&self) -> BackupStrategy
Trait Implementations§
Source§impl Clone for UpdatePolicy
impl Clone for UpdatePolicy
Source§fn clone(&self) -> UpdatePolicy
fn clone(&self) -> UpdatePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdatePolicy
impl Debug for UpdatePolicy
Source§impl Default for UpdatePolicy
impl Default for UpdatePolicy
Source§impl PartialEq for UpdatePolicy
impl PartialEq for UpdatePolicy
Source§fn eq(&self, other: &UpdatePolicy) -> bool
fn eq(&self, other: &UpdatePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdatePolicy
impl StructuralPartialEq for UpdatePolicy
Auto Trait Implementations§
impl Freeze for UpdatePolicy
impl RefUnwindSafe for UpdatePolicy
impl Send for UpdatePolicy
impl Sync for UpdatePolicy
impl Unpin for UpdatePolicy
impl UnsafeUnpin for UpdatePolicy
impl UnwindSafe for UpdatePolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.