pub enum EffectApiError {
NotAvailable,
AccessDenied {
operation: String,
},
DeviceNotFound {
device_id: DeviceId,
},
InvalidEvent,
EpochOutOfRange {
epoch: u64,
},
Corrupted {
reason: String,
},
ConcurrentAccess,
Backend {
error: String,
},
GraphOperationFailed {
message: String,
},
CryptoOperationFailed {
message: String,
},
InvalidGraphData {
message: String,
},
}Expand description
Effect API-related errors
Variants§
NotAvailable
Effect API is not available
AccessDenied
Access denied for the requested operation
DeviceNotFound
Device not found in effect_api
InvalidEvent
Event has invalid format
EpochOutOfRange
Requested epoch is out of range
Corrupted
Effect API data is corrupted
ConcurrentAccess
Concurrent access conflict detected
Backend
Backend storage error
GraphOperationFailed
Journal graph operation failed
CryptoOperationFailed
Cryptographic operation failed
InvalidGraphData
Invalid node or edge data
Trait Implementations§
Source§impl Debug for EffectApiError
impl Debug for EffectApiError
Source§impl<'de> Deserialize<'de> for EffectApiError
impl<'de> Deserialize<'de> for EffectApiError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EffectApiError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EffectApiError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EffectApiError
impl Display for EffectApiError
Source§impl Error for EffectApiError
impl Error for EffectApiError
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 Serialize for EffectApiError
impl Serialize for EffectApiError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EffectApiError
impl RefUnwindSafe for EffectApiError
impl Send for EffectApiError
impl Sync for EffectApiError
impl Unpin for EffectApiError
impl UnsafeUnpin for EffectApiError
impl UnwindSafe for EffectApiError
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