#[non_exhaustive]pub enum ApprovalModeSource {
Startup,
Replay,
ApprovalReconfigure,
Unknown(String),
}Expand description
How an approval mode took effect. Open.
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.
Startup
The sealed startup snapshot.
Replay
Replayed from the durable log on load.
ApprovalReconfigure
An accepted session/setApprovalMode reconfigure.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalModeSource
impl Clone for ApprovalModeSource
Source§impl Debug for ApprovalModeSource
impl Debug for ApprovalModeSource
Source§impl<'de> Deserialize<'de> for ApprovalModeSource
impl<'de> Deserialize<'de> for ApprovalModeSource
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 ApprovalModeSource
Source§impl PartialEq for ApprovalModeSource
impl PartialEq for ApprovalModeSource
Source§impl Serialize for ApprovalModeSource
impl Serialize for ApprovalModeSource
impl StructuralPartialEq for ApprovalModeSource
Auto Trait Implementations§
impl Freeze for ApprovalModeSource
impl RefUnwindSafe for ApprovalModeSource
impl Send for ApprovalModeSource
impl Sync for ApprovalModeSource
impl Unpin for ApprovalModeSource
impl UnsafeUnpin for ApprovalModeSource
impl UnwindSafe for ApprovalModeSource
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