pub enum RpcLightClientNextBlockError {
InternalError {
error_message: String,
},
UnknownBlock {
error_message: String,
},
EpochOutOfBounds {
epoch_id: EpochId,
},
}Variants§
Trait Implementations§
source§impl Debug for RpcLightClientNextBlockError
impl Debug for RpcLightClientNextBlockError
source§impl<'de> Deserialize<'de> for RpcLightClientNextBlockError
impl<'de> Deserialize<'de> for RpcLightClientNextBlockError
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RpcLightClientNextBlockError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RpcLightClientNextBlockError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for RpcLightClientNextBlockError
impl Error for RpcLightClientNextBlockError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RpcLightClientNextBlockError
impl Serialize for RpcLightClientNextBlockError
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 RpcLightClientNextBlockError
impl RefUnwindSafe for RpcLightClientNextBlockError
impl Send for RpcLightClientNextBlockError
impl Sync for RpcLightClientNextBlockError
impl Unpin for RpcLightClientNextBlockError
impl UnwindSafe for RpcLightClientNextBlockError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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