pub enum OwnedBlockBodyError {
BeaconChain(OwnedBeaconChainBodyError),
IntermediateShard(OwnedIntermediateShardBodyError),
LeafShard(OwnedLeafShardBodyError),
}
Expand description
Errors for OwnedBlockBody
Variants§
BeaconChain(OwnedBeaconChainBodyError)
Beacon chain block body error
IntermediateShard(OwnedIntermediateShardBodyError)
Intermediate shard block body error
LeafShard(OwnedLeafShardBodyError)
Leaf shard block body error
Trait Implementations§
Source§impl Debug for OwnedBlockBodyError
impl Debug for OwnedBlockBodyError
Source§impl Display for OwnedBlockBodyError
impl Display for OwnedBlockBodyError
Source§impl Error for OwnedBlockBodyError
impl Error for OwnedBlockBodyError
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<OwnedBeaconChainBodyError> for OwnedBlockBodyError
impl From<OwnedBeaconChainBodyError> for OwnedBlockBodyError
Source§fn from(source: OwnedBeaconChainBodyError) -> Self
fn from(source: OwnedBeaconChainBodyError) -> Self
Converts to this type from the input type.
Source§impl From<OwnedIntermediateShardBodyError> for OwnedBlockBodyError
impl From<OwnedIntermediateShardBodyError> for OwnedBlockBodyError
Source§fn from(source: OwnedIntermediateShardBodyError) -> Self
fn from(source: OwnedIntermediateShardBodyError) -> Self
Converts to this type from the input type.
Source§impl From<OwnedLeafShardBodyError> for OwnedBlockBodyError
impl From<OwnedLeafShardBodyError> for OwnedBlockBodyError
Source§fn from(source: OwnedLeafShardBodyError) -> Self
fn from(source: OwnedLeafShardBodyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedBlockBodyError
impl RefUnwindSafe for OwnedBlockBodyError
impl Send for OwnedBlockBodyError
impl Sync for OwnedBlockBodyError
impl Unpin for OwnedBlockBodyError
impl UnwindSafe for OwnedBlockBodyError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more