pub enum AggAccessError {
WrongType {
expected: &'static str,
got: &'static str,
},
AggNotFound(String),
}Expand description
Errors that can happen when trying to work with aggregations
Variants§
WrongType
Variant when you attempt to borrow an underlying aggregation
by the wrong type from an AggResult
Fields
AggNotFound(String)
Returned when the key attempting to access doesn’t exist
Trait Implementations§
Source§impl Clone for AggAccessError
impl Clone for AggAccessError
Source§impl Debug for AggAccessError
impl Debug for AggAccessError
Source§impl Display for AggAccessError
impl Display for AggAccessError
Source§impl Error for AggAccessError
impl Error for AggAccessError
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()
Source§impl From<AggAccessError> for Error
impl From<AggAccessError> for Error
Source§fn from(source: AggAccessError) -> Self
fn from(source: AggAccessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AggAccessError
impl RefUnwindSafe for AggAccessError
impl Send for AggAccessError
impl Sync for AggAccessError
impl Unpin for AggAccessError
impl UnsafeUnpin for AggAccessError
impl UnwindSafe for AggAccessError
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