#[non_exhaustive]pub enum RuntimeSnapshotError {
DuplicateSourceIdentity {
source_id: SourceId,
},
DuplicateResource {
kind: &'static str,
name: String,
},
}Expand description
Invalid runtime snapshot structure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateSourceIdentity
Two top-level observations used the same caller-selected source identity.
DuplicateResource
Two resources of one kind used the same neutral name.
Trait Implementations§
Source§impl Clone for RuntimeSnapshotError
impl Clone for RuntimeSnapshotError
Source§fn clone(&self) -> RuntimeSnapshotError
fn clone(&self) -> RuntimeSnapshotError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeSnapshotError
impl Debug for RuntimeSnapshotError
Source§impl Display for RuntimeSnapshotError
impl Display for RuntimeSnapshotError
impl Eq for RuntimeSnapshotError
Source§impl Error for RuntimeSnapshotError
impl Error for RuntimeSnapshotError
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 RuntimeSnapshotError
impl PartialEq for RuntimeSnapshotError
impl StructuralPartialEq for RuntimeSnapshotError
Auto Trait Implementations§
impl Freeze for RuntimeSnapshotError
impl RefUnwindSafe for RuntimeSnapshotError
impl Send for RuntimeSnapshotError
impl Sync for RuntimeSnapshotError
impl Unpin for RuntimeSnapshotError
impl UnsafeUnpin for RuntimeSnapshotError
impl UnwindSafe for RuntimeSnapshotError
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