pub struct UpdateOnChangeError {
pub state_references: usize,
/* private fields */
}
Expand description
Error returned by State::set_on_change
if there are multiple references to the state.
Fields§
§state_references: usize
Number of references to the state.
§Notes
This number is only accurate if the state has not been cloned in another thread.
Trait Implementations§
Source§impl Debug for UpdateOnChangeError
impl Debug for UpdateOnChangeError
Source§impl Display for UpdateOnChangeError
impl Display for UpdateOnChangeError
Source§impl Error for UpdateOnChangeError
impl Error for UpdateOnChangeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UpdateOnChangeError
impl RefUnwindSafe for UpdateOnChangeError
impl Send for UpdateOnChangeError
impl Sync for UpdateOnChangeError
impl Unpin for UpdateOnChangeError
impl UnwindSafe for UpdateOnChangeError
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