pub enum InstrumentationError {
Show 18 variants
InvalidRegistration(String),
InvalidTarget(String),
Execution(String),
DuplicateInstrument(String),
DuplicateTarget(String),
DuplicateAttachment {
instrument_id: String,
target_id: String,
},
UnknownInstrument(String),
UnknownTarget(String),
StaleInstrumentHandle {
instrument_id: String,
generation: u64,
},
StaleTargetHandle {
target_id: String,
generation: u64,
},
SessionMismatch {
instrument_session: String,
target_session: String,
},
FilterMismatch {
instrument_id: String,
target_id: String,
},
UnsupportedCapabilities {
target_id: String,
backend: RuntimeBackend,
missing: BTreeSet<Capability>,
},
UnsupportedEvents {
target_id: String,
backend: RuntimeBackend,
events: BTreeSet<EventKind>,
},
ControlModeRequired(String),
AttachmentRequired {
instrument_id: String,
target_id: String,
},
ControlLeaseHeld {
target_id: String,
holder: String,
},
InvalidControlLease {
target_id: String,
instrument_id: String,
},
}Variants§
InvalidRegistration(String)
InvalidTarget(String)
Execution(String)
DuplicateInstrument(String)
DuplicateTarget(String)
DuplicateAttachment
UnknownInstrument(String)
UnknownTarget(String)
StaleInstrumentHandle
StaleTargetHandle
SessionMismatch
FilterMismatch
UnsupportedCapabilities
UnsupportedEvents
ControlModeRequired(String)
AttachmentRequired
ControlLeaseHeld
InvalidControlLease
Trait Implementations§
Source§impl Clone for InstrumentationError
impl Clone for InstrumentationError
Source§fn clone(&self) -> InstrumentationError
fn clone(&self) -> InstrumentationError
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 InstrumentationError
impl Debug for InstrumentationError
Source§impl Display for InstrumentationError
impl Display for InstrumentationError
impl Eq for InstrumentationError
Source§impl Error for InstrumentationError
impl Error for InstrumentationError
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 From<InstrumentationError> for NativeInstrumentationError
impl From<InstrumentationError> for NativeInstrumentationError
Source§fn from(error: InstrumentationError) -> Self
fn from(error: InstrumentationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InstrumentationError
impl PartialEq for InstrumentationError
impl StructuralPartialEq for InstrumentationError
Auto Trait Implementations§
impl Freeze for InstrumentationError
impl RefUnwindSafe for InstrumentationError
impl Send for InstrumentationError
impl Sync for InstrumentationError
impl Unpin for InstrumentationError
impl UnsafeUnpin for InstrumentationError
impl UnwindSafe for InstrumentationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more