Enum xray_lite::InfallibleContext
source · pub enum InfallibleContext<T> {
Op(T),
Noop,
}
Expand description
Infallible context.
This context is useful if you want to fall back to “no-op” when creation of the underlying context fails.
Variants§
Implementations§
Trait Implementations§
source§impl<T> Clone for InfallibleContext<T>where
T: Clone,
impl<T> Clone for InfallibleContext<T>where
T: Clone,
source§impl<T> Context for InfallibleContext<T>where
T: Context,
impl<T> Context for InfallibleContext<T>where
T: Context,
Auto Trait Implementations§
impl<T> RefUnwindSafe for InfallibleContext<T>where
T: RefUnwindSafe,
impl<T> Send for InfallibleContext<T>where
T: Send,
impl<T> Sync for InfallibleContext<T>where
T: Sync,
impl<T> Unpin for InfallibleContext<T>where
T: Unpin,
impl<T> UnwindSafe for InfallibleContext<T>where
T: UnwindSafe,
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