#[non_exhaustive]pub struct DeploymentComponentUpdatePolicy {
pub timeout_in_seconds: Option<i32>,
pub action: Option<DeploymentComponentUpdatePolicyAction>,
}Expand description
Contains information about a deployment's policy that defines when components are safe to update.
Each component on a device can report whether or not it's ready to update. After a component and its dependencies are ready, they can apply the update in the deployment. You can configure whether or not the deployment notifies components of an update and waits for a response. You specify the amount of time each component has to respond to the update notification.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timeout_in_seconds: Option<i32>The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
action: Option<DeploymentComponentUpdatePolicyAction>Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
-
NOTIFY_COMPONENTS– The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see Create deployments in the IoT Greengrass V2 Developer Guide. -
SKIP_NOTIFY_COMPONENTS– The deployment doesn't notify components or wait for them to be safe to update.
Default: NOTIFY_COMPONENTS
Implementations§
source§impl DeploymentComponentUpdatePolicy
impl DeploymentComponentUpdatePolicy
sourcepub fn timeout_in_seconds(&self) -> Option<i32>
pub fn timeout_in_seconds(&self) -> Option<i32>
The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.
Default: 60
sourcepub fn action(&self) -> Option<&DeploymentComponentUpdatePolicyAction>
pub fn action(&self) -> Option<&DeploymentComponentUpdatePolicyAction>
Whether or not to notify components and wait for components to become safe to update. Choose from the following options:
-
NOTIFY_COMPONENTS– The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see Create deployments in the IoT Greengrass V2 Developer Guide. -
SKIP_NOTIFY_COMPONENTS– The deployment doesn't notify components or wait for them to be safe to update.
Default: NOTIFY_COMPONENTS
source§impl DeploymentComponentUpdatePolicy
impl DeploymentComponentUpdatePolicy
sourcepub fn builder() -> DeploymentComponentUpdatePolicyBuilder
pub fn builder() -> DeploymentComponentUpdatePolicyBuilder
Creates a new builder-style object to manufacture DeploymentComponentUpdatePolicy.
Trait Implementations§
source§impl Clone for DeploymentComponentUpdatePolicy
impl Clone for DeploymentComponentUpdatePolicy
source§fn clone(&self) -> DeploymentComponentUpdatePolicy
fn clone(&self) -> DeploymentComponentUpdatePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for DeploymentComponentUpdatePolicy
impl PartialEq for DeploymentComponentUpdatePolicy
source§fn eq(&self, other: &DeploymentComponentUpdatePolicy) -> bool
fn eq(&self, other: &DeploymentComponentUpdatePolicy) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeploymentComponentUpdatePolicy
Auto Trait Implementations§
impl Freeze for DeploymentComponentUpdatePolicy
impl RefUnwindSafe for DeploymentComponentUpdatePolicy
impl Send for DeploymentComponentUpdatePolicy
impl Sync for DeploymentComponentUpdatePolicy
impl Unpin for DeploymentComponentUpdatePolicy
impl UnwindSafe for DeploymentComponentUpdatePolicy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more