pub struct Errors { /* private fields */ }Implementations§
source§impl Errors
impl Errors
pub fn log_abbreviated(&mut self, loc: &Loc, key: ErrorKey)
pub fn push_abbreviated<E: ErrorLoc>(&mut self, eloc: E, key: ErrorKey)
pub fn push_header(&mut self, _key: ErrorKey, msg: &str)
pub fn emit_reports(&mut self, json: bool)
sourcepub fn get_mut() -> MutexGuard<'static, Errors>
pub fn get_mut() -> MutexGuard<'static, Errors>
Get a mutable lock on the global ERRORS struct.
Panics
May panic when the mutex has been poisoned by another thread.
sourcepub fn get() -> MutexGuard<'static, Errors>
pub fn get() -> MutexGuard<'static, Errors>
Like [self.get_mut] but intended for read-only access.
Panics
May panic when the mutex has been poisoned by another thread.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Errors
impl Send for Errors
impl !Sync for Errors
impl Unpin for Errors
impl !UnwindSafe for Errors
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> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere T: AsAny + ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().