Skip to main content

Context

Trait Context 

Source
pub trait Context:
    Debug
    + Display
    + Send
    + Sync
    + 'static { }
Expand description

A marker trait denoting a piece of context information.

These types are supposed to be passed into the ErrorContext functions.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Debug + Display + Send + Sync + 'static> Context for T