Enum sql::plan::QueryLifetime [−][src]
pub enum QueryLifetime<'a> {
OneShot(&'a PlanContext),
Static,
}
Expand description
Specifies how long a query will live. This impacts whether the query is
allowed to reason about the time at which it is running, e.g., by calling
the now()
function.
Variants
OneShot(&'a PlanContext)
Tuple Fields
0: &'a PlanContext
The query’s result will be computed at one point in time.
Static
The query’s result will be maintained indefinitely.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for QueryLifetime<'a>
impl<'a> Send for QueryLifetime<'a>
impl<'a> Sync for QueryLifetime<'a>
impl<'a> Unpin for QueryLifetime<'a>
impl<'a> UnwindSafe for QueryLifetime<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more