pub struct ConsoleAlertHandler { /* private fields */ }Expand description
Console alert handler implementation
Implementations§
Trait Implementations§
Source§impl<T> AlertHandler<T> for ConsoleAlertHandler
impl<T> AlertHandler<T> for ConsoleAlertHandler
Source§fn handle_violation(&self, violation: &ResourceViolation<T>) -> Result<()>
fn handle_violation(&self, violation: &ResourceViolation<T>) -> Result<()>
Report a violation through log, at a level matching its severity (F24).
This used to println! unconditionally, which writes to a library consumer’s
stdout with no way to filter or redirect it.
Source§fn handle_warning(&self, warning: &ResourceWarning<T>) -> Result<()>
fn handle_warning(&self, warning: &ResourceWarning<T>) -> Result<()>
Report a warning through log (F24).
Auto Trait Implementations§
impl Freeze for ConsoleAlertHandler
impl RefUnwindSafe for ConsoleAlertHandler
impl Send for ConsoleAlertHandler
impl Sync for ConsoleAlertHandler
impl Unpin for ConsoleAlertHandler
impl UnsafeUnpin for ConsoleAlertHandler
impl UnwindSafe for ConsoleAlertHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more