options/snapshot.rs
1use crate::{Ref, Value};
2
3/// Defines the behavior for a snapshot of configuration [`Options`](crate::Options).
4#[cfg_attr(feature = "async", maybe_impl::traits(Send, Sync))]
5pub trait OptionsSnapshot<T: Value> {
6 /// Gets the configuration options with the specified name.
7 ///
8 /// # Arguments
9 ///
10 /// * `name` - The optional name of the options to retrieve
11 fn get(&self, name: Option<&str>) -> Ref<T>;
12}