INNER CODE UNIT · Rust

remove

gosub-io/gosub-engine · crates/gosub_config/src/lib.rs:32

    fn remove(&self, key: &str) -> Result<()>;

    /// Retrieves all the settings in the storage in one go. This is used for preloading the settings
    /// into the `ConfigStore` and is more performant normally than calling `get_setting` manually for each
    /// setting.
    fn all(&self) -> Result<HashMap<String, Setting>>;

    /// Flushes any buffered writes to the backing store. Adapters that persist eagerly on every
    /// `set` (or not at all, like the in-memory adapter) treat this as a no-op.
    fn flush(&self) -> Result<()> {
        Ok(())
    }
}

/// Identifies a registered subscription so it can later be removed via [`Config::unsubscribe`].
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct SubscriptionId(u64);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…