#[non_exhaustive]pub enum HandleError {
ForeignRuntime {
handle: &'static str,
},
InvalidSense {
sense: SenseId,
},
InvalidHostPath {
path: HostPathId,
},
InvalidCommand {
cmd: CmdId,
},
InvalidKnot {
knot: KnotHandle,
},
InvalidPort {
knot: KnotHandle,
port: PortSlot,
},
DomainValue {
sense: SenseId,
domain: SignalDomain,
},
}Expand description
Failure caused by using a dense handle with the wrong runtime or port.
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.
ForeignRuntime
Dense handle belongs to a different Runtime.
InvalidSense
SenseId is out of range or does not reference a SignalIn knot.
InvalidHostPath
HostPathId is out of range for this runtime.
Fields
§
path: HostPathIdRejected dense host-path handle.
InvalidCommand
CmdId is out of range for this runtime.
InvalidKnot
KnotHandle is out of range for this runtime.
Fields
§
knot: KnotHandleRejected dense knot handle.
InvalidPort
PortSlot is invalid for the given knot in this runtime.
Fields
§
knot: KnotHandleKnot that owns the rejected port slot.
DomainValue
A host-authored sense value violates its declared signal domain.
Fields
§
domain: SignalDomainDeclared domain for that SignalIn knot.
Trait Implementations§
Source§impl Clone for HandleError
impl Clone for HandleError
Source§fn clone(&self) -> HandleError
fn clone(&self) -> HandleError
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 moreimpl Copy for HandleError
Source§impl Debug for HandleError
impl Debug for HandleError
Source§impl Display for HandleError
impl Display for HandleError
impl Eq for HandleError
Source§impl Error for HandleError
Available on crate feature std only.
impl Error for HandleError
Available on crate feature
std only.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<HandleError> for ScenarioError
impl From<HandleError> for ScenarioError
Source§fn from(value: HandleError) -> Self
fn from(value: HandleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HandleError
impl PartialEq for HandleError
impl StructuralPartialEq for HandleError
Auto Trait Implementations§
impl Freeze for HandleError
impl RefUnwindSafe for HandleError
impl Send for HandleError
impl Sync for HandleError
impl Unpin for HandleError
impl UnsafeUnpin for HandleError
impl UnwindSafe for HandleError
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