Enum linera_views::backends::dual::DualStoreError
source · pub enum DualStoreError<E1, E2> {
BcsError(Error),
First(E1),
Second(E2),
}
Expand description
The error type for DualStore
.
Variants§
Trait Implementations§
source§impl<E1, E2> Display for DualStoreError<E1, E2>
impl<E1, E2> Display for DualStoreError<E1, E2>
source§impl<E1, E2> Error for DualStoreError<E1, E2>
impl<E1, E2> Error for DualStoreError<E1, E2>
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<E1, E2> From<Error> for DualStoreError<E1, E2>
impl<E1, E2> From<Error> for DualStoreError<E1, E2>
source§impl<E1, E2, K1, K2> KeyIterable<DualStoreError<E1, E2>> for DualStoreKeys<K1, K2>where
K1: KeyIterable<E1>,
K2: KeyIterable<E2>,
impl<E1, E2, K1, K2> KeyIterable<DualStoreError<E1, E2>> for DualStoreKeys<K1, K2>where
K1: KeyIterable<E1>,
K2: KeyIterable<E2>,
§type Iterator<'a> = DualStoreKeyIterator<<K1 as KeyIterable<E1>>::Iterator<'a>, <K2 as KeyIterable<E2>>::Iterator<'a>>
where
K1: 'a,
K2: 'a
type Iterator<'a> = DualStoreKeyIterator<<K1 as KeyIterable<E1>>::Iterator<'a>, <K2 as KeyIterable<E2>>::Iterator<'a>> where K1: 'a, K2: 'a
The iterator returning keys by reference.
source§impl<E1, E2, K1, K2> KeyValueIterable<DualStoreError<E1, E2>> for DualStoreKeyValues<K1, K2>where
K1: KeyValueIterable<E1>,
K2: KeyValueIterable<E2>,
impl<E1, E2, K1, K2> KeyValueIterable<DualStoreError<E1, E2>> for DualStoreKeyValues<K1, K2>where
K1: KeyValueIterable<E1>,
K2: KeyValueIterable<E2>,
§type Iterator<'a> = DualStoreKeyValueIterator<<K1 as KeyValueIterable<E1>>::Iterator<'a>, <K2 as KeyValueIterable<E2>>::Iterator<'a>>
where
K1: 'a,
K2: 'a
type Iterator<'a> = DualStoreKeyValueIterator<<K1 as KeyValueIterable<E1>>::Iterator<'a>, <K2 as KeyValueIterable<E2>>::Iterator<'a>> where K1: 'a, K2: 'a
The iterator that returns key-value pairs by reference.
§type IteratorOwned = DualStoreKeyValueIteratorOwned<<K1 as KeyValueIterable<E1>>::IteratorOwned, <K2 as KeyValueIterable<E2>>::IteratorOwned>
type IteratorOwned = DualStoreKeyValueIteratorOwned<<K1 as KeyValueIterable<E1>>::IteratorOwned, <K2 as KeyValueIterable<E2>>::IteratorOwned>
The iterator that returns key-value pairs by value.
source§fn into_iterator_owned(self) -> Self::IteratorOwned
fn into_iterator_owned(self) -> Self::IteratorOwned
Iterates keys and values by value.
source§impl<E1, E2> KeyValueStoreError for DualStoreError<E1, E2>where
E1: KeyValueStoreError,
E2: KeyValueStoreError,
impl<E1, E2> KeyValueStoreError for DualStoreError<E1, E2>where
E1: KeyValueStoreError,
E2: KeyValueStoreError,
Auto Trait Implementations§
impl<E1, E2> Freeze for DualStoreError<E1, E2>
impl<E1, E2> RefUnwindSafe for DualStoreError<E1, E2>where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
impl<E1, E2> Send for DualStoreError<E1, E2>
impl<E1, E2> Sync for DualStoreError<E1, E2>
impl<E1, E2> Unpin for DualStoreError<E1, E2>
impl<E1, E2> UnwindSafe for DualStoreError<E1, E2>where
E1: UnwindSafe,
E2: UnwindSafe,
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
source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoAnyhow for T
impl<T> IntoAnyhow for T
source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
Converts
self
into an anyhow::Error
.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 moreCreates a shared type from an unshared type.
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> MockResults for T
impl<T> MockResults for T
§type Results = T
type Results = T
The mock native type of the results for the
MockInstance
.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length
bytes from memory from the provided location
.
source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes
to memory at the provided location
.
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref