Struct pavex::blueprint::error_observer::ErrorObserver
source · pub struct ErrorObserver { /* private fields */ }
Expand description
An error observer that has been configured but has not yet been registered with a Blueprint
.
§Guide
Check out Blueprint::error_observer
for an introduction to error observers in Pavex.
§Use cases
ErrorObserver
is primarily used by
kits
to allow users to customize (or disable!)
the bundled observers before registering them with a Blueprint
.
Implementations§
source§impl ErrorObserver
impl ErrorObserver
sourcepub fn new(callable: RawIdentifiers) -> Self
pub fn new(callable: RawIdentifiers) -> Self
Create a new (unregistered) error observer.
Check out the documentation of Blueprint::error_observer
for more details
on observers.
sourcepub fn register(self, bp: &mut Blueprint) -> RegisteredErrorObserver<'_>
pub fn register(self, bp: &mut Blueprint) -> RegisteredErrorObserver<'_>
Register this error observer with a Blueprint
.
Check out the documentation of Blueprint::error_observer
for more details.
Trait Implementations§
source§impl Clone for ErrorObserver
impl Clone for ErrorObserver
source§fn clone(&self) -> ErrorObserver
fn clone(&self) -> ErrorObserver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ErrorObserver
impl RefUnwindSafe for ErrorObserver
impl Send for ErrorObserver
impl Sync for ErrorObserver
impl Unpin for ErrorObserver
impl UnwindSafe for ErrorObserver
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)