pub struct CommandBlockExpectedState { /* private fields */ }Expand description
Configuration for a shell command to execute
The command will be executed each time compliance is assessed. Use this for idempotent commands or one-time setup tasks.
Implementations§
Source§impl CommandBlockExpectedState
impl CommandBlockExpectedState
pub fn new(cmd: &str) -> CommandBlockExpectedState
pub fn new_from_secret(sec_ref: SecretReference) -> CommandBlockExpectedState
Trait Implementations§
Source§impl<Handler: HostHandler> AssessCompliance<Handler> for CommandBlockExpectedState
impl<Handler: HostHandler> AssessCompliance<Handler> for CommandBlockExpectedState
Source§async fn assess_compliance(
&self,
_host_handler: &mut Handler,
host_properties: &Option<HostProperties>,
privilege: &Privilege,
_optional_secret_provider: &Option<SecretProvidersPool>,
) -> Result<AttributeComplianceAssessment, RegentError>
async fn assess_compliance( &self, _host_handler: &mut Handler, host_properties: &Option<HostProperties>, privilege: &Privilege, _optional_secret_provider: &Option<SecretProvidersPool>, ) -> Result<AttributeComplianceAssessment, RegentError>
Assess whether the host is compliant. Read more
Source§impl Check for CommandBlockExpectedState
impl Check for CommandBlockExpectedState
Source§fn check_host_compatibility(
&self,
_host_properties: &HostProperties,
) -> Result<(), RegentError>
fn check_host_compatibility( &self, _host_properties: &HostProperties, ) -> Result<(), RegentError>
If host properties are known, checks whether this attribute is compatible with the host or not. Read more
Source§impl Clone for CommandBlockExpectedState
impl Clone for CommandBlockExpectedState
Source§fn clone(&self) -> CommandBlockExpectedState
fn clone(&self) -> CommandBlockExpectedState
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 CommandBlockExpectedState
impl Debug for CommandBlockExpectedState
Source§impl<'de> Deserialize<'de> for CommandBlockExpectedState
impl<'de> Deserialize<'de> for CommandBlockExpectedState
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
impl StructuralPartialEq for CommandBlockExpectedState
Source§impl Timeout for CommandBlockExpectedState
impl Timeout for CommandBlockExpectedState
Source§fn default_timeout(&self) -> Duration
fn default_timeout(&self) -> Duration
Get the default timeout for this operation. Read more
Auto Trait Implementations§
impl Freeze for CommandBlockExpectedState
impl RefUnwindSafe for CommandBlockExpectedState
impl Send for CommandBlockExpectedState
impl Sync for CommandBlockExpectedState
impl Unpin for CommandBlockExpectedState
impl UnsafeUnpin for CommandBlockExpectedState
impl UnwindSafe for CommandBlockExpectedState
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