pub struct Flag<IntoError, IntoWarning>(/* private fields */)
where
IntoError: Clone + Send,
IntoWarning: Clone + Send;
Implementations§
Source§impl<IntoError, IntoWarning> Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> Flag<IntoError, IntoWarning>
pub fn new() -> Self
pub fn store_error_if_not_set<Error>(&self, error: Error)where
Error: Into<IntoError>,
pub fn store_warning_if_not_set<Warning>(&self, warning: Warning)where
Warning: Into<IntoWarning>,
pub fn load_error(&self) -> Result<(), IntoError>
pub fn load_warning(&self) -> Option<IntoWarning>
Trait Implementations§
Auto Trait Implementations§
impl<IntoError, IntoWarning> Freeze for Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> RefUnwindSafe for Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> Send for Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> Sync for Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> Unpin for Flag<IntoError, IntoWarning>
impl<IntoError, IntoWarning> UnwindSafe for Flag<IntoError, IntoWarning>
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