#[non_exhaustive]pub struct PendingReloadVerdict {
pub path: ReloadPathAgreement,
pub image: RunningImageAgreement,
pub spec: Option<LaunchSpecAgreement>,
}Expand description
Independent comparisons of configured path, launch spec and running image at list time. An absent verdict means the daemon predates this field, not agreement.
Use PendingReloadVerdict::new rather than an external struct literal:
ⓘ
use subc_control::{PendingReloadVerdict, ReloadPathAgreement, RunningImageAgreement,
RunningImageUnavailableReason};
let verdict = PendingReloadVerdict {
path: ReloadPathAgreement::Match,
image: RunningImageAgreement::Unavailable {
reason: RunningImageUnavailableReason::NotRunning,
},
spec: None,
};Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: ReloadPathAgreement§image: RunningImageAgreement§spec: Option<LaunchSpecAgreement>Implementations§
Source§impl PendingReloadVerdict
impl PendingReloadVerdict
Sourcepub fn new(path: ReloadPathAgreement, image: RunningImageAgreement) -> Self
pub fn new(path: ReloadPathAgreement, image: RunningImageAgreement) -> Self
Create the path and image comparisons without a launch-spec verdict.
Sourcepub fn with_spec(self, spec: Option<LaunchSpecAgreement>) -> Self
pub fn with_spec(self, spec: Option<LaunchSpecAgreement>) -> Self
Set or clear the comparison of launch specifications.
Trait Implementations§
Source§impl Clone for PendingReloadVerdict
impl Clone for PendingReloadVerdict
Source§impl Debug for PendingReloadVerdict
impl Debug for PendingReloadVerdict
Source§impl<'de> Deserialize<'de> for PendingReloadVerdict
impl<'de> Deserialize<'de> for PendingReloadVerdict
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
Source§impl PartialEq for PendingReloadVerdict
impl PartialEq for PendingReloadVerdict
Source§impl Serialize for PendingReloadVerdict
impl Serialize for PendingReloadVerdict
impl StructuralPartialEq for PendingReloadVerdict
Auto Trait Implementations§
impl Forget for PendingReloadVerdict
impl Freeze for PendingReloadVerdict
impl RefUnwindSafe for PendingReloadVerdict
impl Send for PendingReloadVerdict
impl Sync for PendingReloadVerdict
impl Unpin for PendingReloadVerdict
impl UnsafeUnpin for PendingReloadVerdict
impl UnwindSafe for PendingReloadVerdict
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