pub enum DocumentError {
Show 35 variants
TooManyParticipants {
count: usize,
},
MixedRobotApi {
artifact: ParticipantArtifactId,
expected: RobotApiVersion,
actual: RobotApiVersion,
},
DuplicateParticipant {
id: ParticipantId,
},
DuplicateBinary {
path: BundlePath,
},
UnknownArtifact {
participant: ParticipantId,
artifact: ParticipantArtifactId,
},
ArtifactContractMismatch {
artifact: ParticipantArtifactId,
contract: ParticipantArtifactId,
},
ArtifactOutsideBin {
artifact: ParticipantArtifactId,
path: BundlePath,
},
BrainArtifactId {
actual: ParticipantArtifactId,
},
BrainArtifactPath {
actual: BundlePath,
},
UnusedArtifact {
artifact: ParticipantArtifactId,
},
UnknownComponent {
participant: ParticipantId,
component_instance: ComponentInstanceId,
},
MissingDriverComponent {
participant: ParticipantId,
},
UnexpectedComponent {
participant: ParticipantId,
kind: ParticipantKind,
component_instance: ComponentInstanceId,
},
MissingBrain,
BrainIdMismatch {
actual: ParticipantId,
},
DuplicateBrain,
MissingSimulator,
DuplicateSimulator,
ClockMismatch {
participant: ParticipantId,
robot: Clock,
participant_clock: ParticipantClock,
},
ExecutionModeMismatch {
participant: ParticipantId,
kind: ParticipantKind,
robot: Clock,
participant_clock: ParticipantClock,
},
RequirementKinematicsMismatch {
artifact: ParticipantArtifactId,
requirement: ParticipantRequirement,
actual: KinematicKind,
},
RequirementActuatorListEmpty {
artifact: ParticipantArtifactId,
side: &'static str,
},
RequirementActuatorInvalid {
artifact: ParticipantArtifactId,
actuator: CapabilityRef,
error: String,
},
RequirementMotorModeMismatch {
artifact: ParticipantArtifactId,
actuator: CapabilityRef,
expected: MotorCommand,
actual: MotorCommand,
},
InvalidConfigSchema {
artifact: ParticipantArtifactId,
error: String,
},
InvalidConfig {
participant: ParticipantId,
error: String,
},
AssetPathMismatch {
id: AssetId,
path: BundlePath,
},
AssetOutsideAssets {
path: BundlePath,
},
DuplicateAssetId {
id: AssetId,
},
DuplicateAssetPath {
path: BundlePath,
},
RouterOutsideAssets {
path: BundlePath,
},
RouterMissingAsset {
path: BundlePath,
},
AssetIndexMismatch,
BinaryIndexMismatch,
Path(BundlePathError),
}Expand description
Why a persisted runtime document is not a valid execution plan.
Variants§
TooManyParticipants
MixedRobotApi
DuplicateParticipant
Fields
§
id: ParticipantIdDuplicateBinary
Fields
§
path: BundlePathUnknownArtifact
ArtifactContractMismatch
ArtifactOutsideBin
BrainArtifactId
Fields
§
actual: ParticipantArtifactIdBrainArtifactPath
Fields
§
actual: BundlePathUnusedArtifact
Fields
§
artifact: ParticipantArtifactIdUnknownComponent
MissingDriverComponent
Fields
§
participant: ParticipantIdUnexpectedComponent
MissingBrain
BrainIdMismatch
Fields
§
actual: ParticipantIdDuplicateBrain
MissingSimulator
DuplicateSimulator
ClockMismatch
ExecutionModeMismatch
RequirementKinematicsMismatch
RequirementActuatorListEmpty
RequirementActuatorInvalid
RequirementMotorModeMismatch
Fields
§
artifact: ParticipantArtifactId§
actuator: CapabilityRef§
expected: MotorCommand§
actual: MotorCommandInvalidConfigSchema
InvalidConfig
AssetPathMismatch
AssetOutsideAssets
Fields
§
path: BundlePathDuplicateAssetId
DuplicateAssetPath
Fields
§
path: BundlePathRouterOutsideAssets
Fields
§
path: BundlePathRouterMissingAsset
Fields
§
path: BundlePathAssetIndexMismatch
BinaryIndexMismatch
Path(BundlePathError)
Trait Implementations§
Source§impl Clone for DocumentError
impl Clone for DocumentError
Source§fn clone(&self) -> DocumentError
fn clone(&self) -> DocumentError
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 DocumentError
impl Debug for DocumentError
Source§impl Display for DocumentError
impl Display for DocumentError
Source§impl Error for DocumentError
impl Error for DocumentError
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<BundlePathError> for DocumentError
impl From<BundlePathError> for DocumentError
Source§fn from(source: BundlePathError) -> Self
fn from(source: BundlePathError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentError> for BundleError
impl From<DocumentError> for BundleError
Source§fn from(source: DocumentError) -> Self
fn from(source: DocumentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocumentError
impl RefUnwindSafe for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnsafeUnpin for DocumentError
impl UnwindSafe for DocumentError
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