pub enum UpgradeError {
Show 17 variants
FromInvalid {
from: String,
reason: String,
},
ModuleEmpty {
kind: &'static str,
},
ModuleInvalid {
kind: &'static str,
module: String,
reason: String,
},
EmptyScript,
AbsoluteScript {
script: PathBuf,
},
ParentEscapeScript {
script: PathBuf,
},
NonLispExtensionScript {
script: PathBuf,
},
DuplicateFrom {
from: String,
},
FromNotBeforeVersao {
from: String,
versao: String,
},
RestartNotExclusive {
from: String,
restart_count: usize,
other_kinds: Vec<&'static str>,
},
StateChangeWithoutPriorLoad {
from: String,
script: PathBuf,
},
PurgeWithoutPriorLoad {
from: String,
kind: &'static str,
module: String,
},
DuplicateCleanup {
from: String,
module: String,
kinds: Vec<&'static str>,
},
DuplicateLoadModule {
from: String,
module: String,
},
DuplicateStateChange {
from: String,
script: PathBuf,
},
StateChangeAfterCleanup {
from: String,
script: PathBuf,
prior_cleanup_kind: &'static str,
prior_cleanup_module: String,
},
StateChangeWithoutOnStateChangeCallback {
from: String,
script: PathBuf,
},
}Variants§
FromInvalid
ModuleEmpty
ModuleInvalid
EmptyScript
AbsoluteScript
ParentEscapeScript
NonLispExtensionScript
DuplicateFrom
FromNotBeforeVersao
RestartNotExclusive
StateChangeWithoutPriorLoad
PurgeWithoutPriorLoad
DuplicateCleanup
DuplicateLoadModule
DuplicateStateChange
StateChangeAfterCleanup
StateChangeWithoutOnStateChangeCallback
Trait Implementations§
Source§impl Debug for UpgradeError
impl Debug for UpgradeError
Source§impl Display for UpgradeError
impl Display for UpgradeError
impl Eq for UpgradeError
Source§impl Error for UpgradeError
impl Error for UpgradeError
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()
Source§impl PartialEq for UpgradeError
impl PartialEq for UpgradeError
impl StructuralPartialEq for UpgradeError
Auto Trait Implementations§
impl Freeze for UpgradeError
impl RefUnwindSafe for UpgradeError
impl Send for UpgradeError
impl Sync for UpgradeError
impl Unpin for UpgradeError
impl UnsafeUnpin for UpgradeError
impl UnwindSafe for UpgradeError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.