pub struct Detector {}
Expand description
A detector responsible for determining whether the system configuration is in draft mode or applied.
Implementations§
Source§impl Detector
impl Detector
Sourcepub async fn check(platform: Platform) -> State
pub async fn check(platform: Platform) -> State
Checks the current configuration state based on the platform.
§Parameters
platform
: The target platform for which the configuration state is being checked.
§Returns
State::Draft
if the configuration is still in draft mode.State::Applied
if the configuration has been applied.State::Undefined
if the check fails or the state cannot be determined.
Auto Trait Implementations§
impl Freeze for Detector
impl RefUnwindSafe for Detector
impl Send for Detector
impl Sync for Detector
impl Unpin for Detector
impl UnwindSafe for Detector
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