pub struct ParameterScopes<T> { /* private fields */ }Expand description
Values remain owned by the host; SQL decides which assignment lifetime restores them.
Implementations§
Source§impl<T> ParameterScopes<T>
impl<T> ParameterScopes<T>
Sourcepub fn session_assignment(&mut self, name: &str)
pub fn session_assignment(&mut self, name: &str)
A session assignment supersedes pending LOCAL and function configuration restoration for this parameter.
pub fn enter_function(&mut self) -> ParameterScope
pub fn leave_function(&mut self, scope: ParameterScope) -> BTreeMap<String, T>
Sourcepub fn assigned(
&mut self,
name: String,
previous: T,
action: ParameterAssignment,
in_transaction: bool,
) -> Option<T>
pub fn assigned( &mut self, name: String, previous: T, action: ParameterAssignment, in_transaction: bool, ) -> Option<T>
Record a successful assignment. An out-of-transaction LOCAL returns its immediate restoration value.
pub fn finish_transaction(&mut self) -> BTreeMap<String, T>
Trait Implementations§
Source§impl<T: Clone> Clone for ParameterScopes<T>
impl<T: Clone> Clone for ParameterScopes<T>
Auto Trait Implementations§
impl<T> Freeze for ParameterScopes<T>
impl<T> RefUnwindSafe for ParameterScopes<T>
impl<T> Send for ParameterScopes<T>
impl<T> Sync for ParameterScopes<T>
impl<T> Unpin for ParameterScopes<T>
impl<T> UnsafeUnpin for ParameterScopes<T>
impl<T> UnwindSafe for ParameterScopes<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more