#[non_exhaustive]pub enum ConfigWatchEvent {
Resync {
modules: Vec<ConfigModule>,
stamped: bool,
},
Change {
module_id: String,
project_id: Option<String>,
workspace_id: Option<String>,
declaration_pending: Option<ConfigDeclarationPending>,
approved_generation: Option<u64>,
active_generation: Option<u64>,
status: String,
status_reason: Option<String>,
file_error: Option<ConfigFileError>,
schema_digest: Option<Digest>,
pending_plan: Option<Digest>,
},
}Expand description
A watch always begins with a full resync, including after reconnecting. A resync may arrive at any time and replaces the reader’s entire state.
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.
Resync
Change
Implementations§
Source§impl ConfigWatchEvent
impl ConfigWatchEvent
pub fn change(row: &ConfigModule) -> Self
Trait Implementations§
Source§impl Clone for ConfigWatchEvent
impl Clone for ConfigWatchEvent
Source§impl Debug for ConfigWatchEvent
impl Debug for ConfigWatchEvent
Source§impl<'de> Deserialize<'de> for ConfigWatchEvent
impl<'de> Deserialize<'de> for ConfigWatchEvent
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 ConfigWatchEvent
impl PartialEq for ConfigWatchEvent
Source§impl Serialize for ConfigWatchEvent
impl Serialize for ConfigWatchEvent
impl StructuralPartialEq for ConfigWatchEvent
Auto Trait Implementations§
impl Forget for ConfigWatchEvent
impl Freeze for ConfigWatchEvent
impl Move for ConfigWatchEvent
impl RefUnwindSafe for ConfigWatchEvent
impl Send for ConfigWatchEvent
impl Sync for ConfigWatchEvent
impl Unpin for ConfigWatchEvent
impl UnsafeUnpin for ConfigWatchEvent
impl UnwindSafe for ConfigWatchEvent
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