pub enum Ephemeral {
SessionVariable,
TemporaryTable,
OpenBlock,
NamedStatement,
}Expand description
State an invocation created that dies with the process.
A session variable, a temporary table, an open atomic block and a named prepared statement all vanish when the connection closes at the end of this invocation. Whoever comes from a client with a persistent session expects otherwise, so the product says so rather than letting them assume.
The notice is raised only when the invocation actually created such state. A plain read creates none, and warning on every read would be noise that teaches the caller to ignore the notice that matters.
Variants§
SessionVariable
A variable that lives on the session.
TemporaryTable
A table that lives on the session.
OpenBlock
An atomic block left open.
NamedStatement
A statement prepared under a name on the session.
Implementations§
Trait Implementations§
impl Copy for Ephemeral
impl Eq for Ephemeral
impl StructuralPartialEq for Ephemeral
Auto Trait Implementations§
impl Freeze for Ephemeral
impl RefUnwindSafe for Ephemeral
impl Send for Ephemeral
impl Sync for Ephemeral
impl Unpin for Ephemeral
impl UnsafeUnpin for Ephemeral
impl UnwindSafe for Ephemeral
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.