#[non_exhaustive]pub enum LaunchNonceSource {
Fd,
Env,
ForwardCompatibleUnknown(String),
}Expand description
Where a module read its launch nonce from, as reported in
ManifestProvenance::launch_nonce_source.
An open string enum, like BuildGitShaAbsenceReason: a value this crate
does not know decodes as ForwardCompatibleUnknown instead of making the
whole provenance block, and with it the module’s HELLO, fail to decode.
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.
Fd
Read from the inherited descriptor the daemon passes.
Env
Read from the SUBC_LAUNCH_NONCE environment variable.
ForwardCompatibleUnknown(String)
Implementations§
Trait Implementations§
Source§impl Clone for LaunchNonceSource
impl Clone for LaunchNonceSource
Source§impl Debug for LaunchNonceSource
impl Debug for LaunchNonceSource
Source§impl<'de> Deserialize<'de> for LaunchNonceSource
impl<'de> Deserialize<'de> for LaunchNonceSource
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 LaunchNonceSource
Source§impl PartialEq for LaunchNonceSource
impl PartialEq for LaunchNonceSource
Source§impl Serialize for LaunchNonceSource
impl Serialize for LaunchNonceSource
impl StructuralPartialEq for LaunchNonceSource
Auto Trait Implementations§
impl Freeze for LaunchNonceSource
impl RefUnwindSafe for LaunchNonceSource
impl Send for LaunchNonceSource
impl Sync for LaunchNonceSource
impl Unpin for LaunchNonceSource
impl UnsafeUnpin for LaunchNonceSource
impl UnwindSafe for LaunchNonceSource
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