pub enum Job {
Assess,
Reach,
}Expand description
The type of job for a RegentTask to perform.
§Variants
Assess: Only assess compliance and return the current state (read-only)Reach: Assess compliance and automatically perform remediation to reach the expected state
§Example
use regent_sdk::task::Job;
// For read-only compliance checking
let job = Job::Assess;
// For automatic remediation
let job = Job::Reach;Variants§
Assess
Assess compliance only (read-only operation).
This will check if the host is compliant with the expected state and return the compliance status without making any changes.
Reach
Assess and remediate compliance (read-write operation).
This will check compliance and automatically perform the necessary remediations to bring the host into the expected state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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