pub struct ErrorManager { /* private fields */ }
Expand description
A shared error manager with an error recording limit.
Implementations§
Source§impl ErrorManager
impl ErrorManager
Sourcepub fn with_max_count(max_count: usize) -> Rc<RefCell<ErrorManager>>
pub fn with_max_count(max_count: usize) -> Rc<RefCell<ErrorManager>>
Constructs a shared error manager that can record up to max_count
primary errors.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether the error manager has recorded an error.
Sourcepub fn is_full(&self) -> bool
pub fn is_full(&self) -> bool
Whether the error manager cannot take any further primary errors.
Auto Trait Implementations§
impl Freeze for ErrorManager
impl RefUnwindSafe for ErrorManager
impl !Send for ErrorManager
impl !Sync for ErrorManager
impl Unpin for ErrorManager
impl UnwindSafe for ErrorManager
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