pub enum IcRequestError {
UnsupportedVersion(u16),
InvalidTarget,
SnapshotRequired,
UnexpectedSnapshot,
InvalidSnapshotId,
Encoding(String),
ArgumentsTooLarge,
EffectMismatch {
expected: IcRequestEffect,
},
TargetMismatch,
DigestMismatch,
}Expand description
Typed closed IC request, exact byte binding or codec admission failure.
Variants§
UnsupportedVersion(u16)
Other product generations are not maintained.
InvalidTarget
Target text is not a bounded canonicalizable principal.
SnapshotRequired
Load requires exact raw snapshot bytes.
UnexpectedSnapshot
A method that has no snapshot argument received one.
InvalidSnapshotId
Snapshot bytes are empty or exceed their finite bound.
Encoding(String)
The pinned upstream Candid encoder rejected the typed arguments.
ArgumentsTooLarge
Derived argument size exceeds the codec bound.
EffectMismatch
A mutation and observation request cannot substitute for each other.
Fields
§
expected: IcRequestEffectRequired semantic class, independent of replicated call mode.
TargetMismatch
The payload/routing target differs from the original operation target.
DigestMismatch
Exact method/argument digest differs from its original reservation.
Trait Implementations§
Source§impl Debug for IcRequestError
impl Debug for IcRequestError
Source§impl Display for IcRequestError
impl Display for IcRequestError
impl Eq for IcRequestError
Source§impl Error for IcRequestError
impl Error for IcRequestError
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<IcRequestError> for ControlRequestError
impl From<IcRequestError> for ControlRequestError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for IcMutationRequestError
impl From<IcRequestError> for IcMutationRequestError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for IcObservationRequestError
impl From<IcRequestError> for IcObservationRequestError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for IcSnapshotDataError
impl From<IcRequestError> for IcSnapshotDataError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for IcSnapshotUploadError
impl From<IcRequestError> for IcSnapshotUploadError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for RestoreSafetyRequestError
impl From<IcRequestError> for RestoreSafetyRequestError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcRequestError> for SnapshotReadRequestError
impl From<IcRequestError> for SnapshotReadRequestError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IcRequestError
impl PartialEq for IcRequestError
impl StructuralPartialEq for IcRequestError
Auto Trait Implementations§
impl Freeze for IcRequestError
impl RefUnwindSafe for IcRequestError
impl Send for IcRequestError
impl Sync for IcRequestError
impl Unpin for IcRequestError
impl UnsafeUnpin for IcRequestError
impl UnwindSafe for IcRequestError
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