#[non_exhaustive]pub enum CapturableAspect {
Impersonation,
ErrorMode,
Transaction,
}Expand description
One aspect that can be read off the calling thread.
Declared aspects are absent by construction: there is nothing to capture for them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Impersonation
The thread’s impersonation context.
ErrorMode
The thread error mode.
Transaction
The thread’s current TxF transaction.
Implementations§
Source§impl CapturableAspect
impl CapturableAspect
Sourcepub const EVERY: &'static [Self]
pub const EVERY: &'static [Self]
Every capturable aspect.
CaptureSet::ALL is derived from this list rather than restating it,
so an aspect added here joins that set automatically instead of leaving
it quietly stale.
Sourcepub const fn as_set(self) -> CaptureSet
pub const fn as_set(self) -> CaptureSet
The singleton set containing just this aspect.
Trait Implementations§
Source§impl Clone for CapturableAspect
impl Clone for CapturableAspect
Source§fn clone(&self) -> CapturableAspect
fn clone(&self) -> CapturableAspect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapturableAspect
Source§impl Debug for CapturableAspect
impl Debug for CapturableAspect
Source§impl Display for CapturableAspect
impl Display for CapturableAspect
impl Eq for CapturableAspect
Source§impl From<CapturableAspect> for CaptureSet
impl From<CapturableAspect> for CaptureSet
Source§fn from(aspect: CapturableAspect) -> Self
fn from(aspect: CapturableAspect) -> Self
Converts to this type from the input type.
Source§impl Hash for CapturableAspect
impl Hash for CapturableAspect
Source§impl PartialEq for CapturableAspect
impl PartialEq for CapturableAspect
impl StructuralPartialEq for CapturableAspect
Auto Trait Implementations§
impl Freeze for CapturableAspect
impl RefUnwindSafe for CapturableAspect
impl Send for CapturableAspect
impl Sync for CapturableAspect
impl Unpin for CapturableAspect
impl UnsafeUnpin for CapturableAspect
impl UnwindSafe for CapturableAspect
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