Struct edgedb_tokio::state::ConfigModifier
source · pub struct ConfigModifier<'a> { /* private fields */ }Expand description
Utility object used to modify config
This object is passed to Fn closure and ConfigDelta::apply.
Implementations§
source§impl ConfigModifier<'_>
impl ConfigModifier<'_>
sourcepub fn set<T: QueryArg>(&mut self, key: &str, value: T)
pub fn set<T: QueryArg>(&mut self, key: &str, value: T)
Set configuration setting to a value
§Panics
This methods panics if value cannot be converted into dynamically
typed Value (QueryArg::to_value() method returns error). To avoid
this panic use either native EdgeDB types (e.g.
edgedb_protocol::model::Datetime instead of std::time::SystemTime
or call to_value manually before passing to set.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ConfigModifier<'a>
impl<'a> RefUnwindSafe for ConfigModifier<'a>
impl<'a> Send for ConfigModifier<'a>
impl<'a> Sync for ConfigModifier<'a>
impl<'a> Unpin for ConfigModifier<'a>
impl<'a> !UnwindSafe for ConfigModifier<'a>
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