pub enum Error {
Jwt(Error),
ConnectionError(ConnectionError),
ClientError(ClientError),
MqttBytesError(Error),
IoError(Error),
ErrorSendingIncomingEvent(SendError<Message>),
FailedToFindProperties,
FailedToFindPortForwardingVersionProperties,
FailedToDeserializeJson(Error),
ProstDecode(DecodeError),
InvalidRequest(String),
IntConversion(TryFromIntError),
}
Expand description
Fundamentum iot core error
Variants§
Jwt(Error)
Failed to serialize/deserialize JWT: {0}
ConnectionError(ConnectionError)
Mqtt Connection Error: {0}
ClientError(ClientError)
Mqtt Client Error: {0}
MqttBytesError(Error)
Failed to serialize/deserialize Mqtt option: {0}
IoError(Error)
I/O Error: {0}
ErrorSendingIncomingEvent(SendError<Message>)
Error while sending packet inside incoming sender event: {0}
FailedToFindProperties
Failed to find properties inside packet
FailedToFindPortForwardingVersionProperties
Failed to get version, portforward message invalid
FailedToDeserializeJson(Error)
Failed to deserialize json: {0}
ProstDecode(DecodeError)
Could not decode MQTT proto data: {0}
InvalidRequest(String)
Request received from cloud is invalid
IntConversion(TryFromIntError)
Failed to convert integer value: {0}
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ClientError> for Error
impl From<ClientError> for Error
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for Error
impl From<ConnectionError> for Error
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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