Enum Error
pub enum Error {
Json(Error),
Mqtt(Error),
Tunnel(Error),
TaskJoin(JoinError),
JobIdMissing,
JobVersion,
JobExecutionMissing(String),
JobRejected(RejectedError),
UnexpectedPacket(Publish),
TokenMismatch {
expected: String,
received: String,
},
Cbor(CborError),
Provision(ProvisionError),
}Expand description
The main error type for the Beluga IoT Core crate.
This enum represents the various errors that can occur within the Beluga IoT
Core crate. It includes errors related to serialization, MQTT, tunneling,
task joining, job management, and CBOR (when the cbor feature is enabled).
Variants§
Json(Error)
An error occurred during JSON serialization or deserialization.
Mqtt(Error)
An error occurred within the Beluga MQTT crate.
Tunnel(Error)
An error occurred within the Beluga Tunnel crate.
TaskJoin(JoinError)
An error occurred while joining a task.
JobIdMissing
The job ID is missing, which is required to perform the requested operation.
JobVersion
The job version is missing.
JobExecutionMissing(String)
The job with the specified ID is missing execution information.
JobRejected(RejectedError)
An error occurred due to a rejected job request.
UnexpectedPacket(Publish)
An unexpected packet was received for the specified topic.
TokenMismatch
A token mismatch occurred, with the expected and received tokens provided.
Cbor(CborError)
cbor only.An error occurred related to CBOR serialization or deserialization.
Provision(ProvisionError)
An error occurred related to provisioning.