Enum transact::state::error::StateReadError [−][src]
pub enum StateReadError {
InvalidStateId(String),
InvalidKey(String),
StorageError(Box<dyn Error>),
}
Expand description
An error that may occur on state reads.
Variants
InvalidStateId(String)
Attempted to read to state from a given state id, and that state id does not exist.
Tuple Fields of InvalidStateId
0: String
InvalidKey(String)
An poorly formed or invalid key was provided.
Tuple Fields of InvalidKey
0: String
An error occurred with the underlying storage mechanism
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for StateReadError
impl !Send for StateReadError
impl !Sync for StateReadError
impl Unpin for StateReadError
impl !UnwindSafe for StateReadError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more