Enum hybrid_rc::UpgradeError
source · [−]pub enum UpgradeError {
ValueDropped,
WrongThread,
}
Expand description
An enumeration of possible errors when upgrading a Weak
.
Variants
ValueDropped
The referenced value was already dropped because no strong references to it exists anymore.
WrongThread
The requested action would have created a new Rc
while at least one Rc
still existed
on another thread.
Trait Implementations
sourceimpl Clone for UpgradeError
impl Clone for UpgradeError
sourcefn clone(&self) -> UpgradeError
fn clone(&self) -> UpgradeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpgradeError
impl Debug for UpgradeError
sourceimpl Display for UpgradeError
impl Display for UpgradeError
sourceimpl Error for UpgradeError
impl Error for UpgradeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Infallible> for UpgradeError
impl From<Infallible> for UpgradeError
sourcefn from(x: Infallible) -> UpgradeError
fn from(x: Infallible) -> UpgradeError
Performs the conversion.
sourceimpl PartialEq<UpgradeError> for UpgradeError
impl PartialEq<UpgradeError> for UpgradeError
impl Copy for UpgradeError
impl Eq for UpgradeError
impl StructuralEq for UpgradeError
impl StructuralPartialEq for UpgradeError
Auto Trait Implementations
impl RefUnwindSafe for UpgradeError
impl Send for UpgradeError
impl Sync for UpgradeError
impl Unpin for UpgradeError
impl UnwindSafe for UpgradeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more