#[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) -> ConfigWatchEvent
Trait Implementations§
Source§impl Clone for ConfigWatchEvent
impl Clone for ConfigWatchEvent
Source§fn clone(&self) -> ConfigWatchEvent
fn clone(&self) -> ConfigWatchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<ConfigWatchEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigWatchEvent, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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