Enum wasmcloud_runtime::capability::wrpc::wrpc::keyvalue::store::Error
source · pub enum Error {
NoSuchStore,
AccessDenied,
Other(String),
}
Expand description
The set of errors which may be raised by functions in this package
Variants§
NoSuchStore
The set of errors which may be raised by functions in this package
AccessDenied
The set of errors which may be raised by functions in this package
Other(String)
The set of errors which may be raised by functions in this package
Trait Implementations§
source§impl<R> Decode<R> for Error
impl<R> Decode<R> for Error
source§type ListDecoder = ListDecoder<<Error as Decode<R>>::Decoder, R>
type ListDecoder = ListDecoder<<Error as Decode<R>>::Decoder, R>
Decoder used to decode lists of value
source§impl<W> Encode<W> for &Error
impl<W> Encode<W> for &Error
source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
source§impl<W> Encode<W> for Error
impl<W> Encode<W> for Error
source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moresource§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 more