#[non_exhaustive]pub enum ManifestProfile {
Job,
}Expand description
The job profile a manifest asks for. Only "job" exists.
§Examples
use stratum_node_core::ManifestProfile;
assert_eq!(serde_json::to_string(&ManifestProfile::Job)?, "\"job\"");
assert!(serde_json::from_str::<ManifestProfile>("\"service\"").is_err());Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Job
A job: started for one period, it runs until it reports a result or its timeout.
Trait Implementations§
Source§impl Clone for ManifestProfile
impl Clone for ManifestProfile
impl Copy for ManifestProfile
Source§impl Debug for ManifestProfile
impl Debug for ManifestProfile
Source§impl<'de> Deserialize<'de> for ManifestProfile
impl<'de> Deserialize<'de> for ManifestProfile
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 Eq for ManifestProfile
Source§impl Hash for ManifestProfile
impl Hash for ManifestProfile
Source§impl PartialEq for ManifestProfile
impl PartialEq for ManifestProfile
Source§impl Serialize for ManifestProfile
impl Serialize for ManifestProfile
impl StructuralPartialEq for ManifestProfile
Auto Trait Implementations§
impl Forget for ManifestProfile
impl Freeze for ManifestProfile
impl Move for ManifestProfile
impl RefUnwindSafe for ManifestProfile
impl Send for ManifestProfile
impl Sync for ManifestProfile
impl Unpin for ManifestProfile
impl UnsafeUnpin for ManifestProfile
impl UnwindSafe for ManifestProfile
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