#[non_exhaustive]pub enum StartQueryError {
StorageFull(StorageFullError),
}Expand description
Errors raised by Endpoint::try_start_query.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StorageFull(StorageFullError)
The internal routing pool is full.
Implementations§
Source§impl StartQueryError
impl StartQueryError
Sourcepub const fn is_storage_full(&self) -> bool
pub const fn is_storage_full(&self) -> bool
Returns true if this value is of type StorageFull. Returns false otherwise
Source§impl StartQueryError
impl StartQueryError
Sourcepub fn unwrap_storage_full(self) -> StorageFullError
pub fn unwrap_storage_full(self) -> StorageFullError
Unwraps this value to the StartQueryError::StorageFull variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_storage_full_ref(&self) -> &StorageFullError
pub fn unwrap_storage_full_ref(&self) -> &StorageFullError
Unwraps this reference to the StartQueryError::StorageFull variant.
Panics if this value is of any other type.
Source§impl StartQueryError
impl StartQueryError
Sourcepub fn try_unwrap_storage_full(
self,
) -> Result<StorageFullError, TryUnwrapError<Self>>
pub fn try_unwrap_storage_full( self, ) -> Result<StorageFullError, TryUnwrapError<Self>>
Attempts to unwrap this value to the StartQueryError::StorageFull variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_storage_full_ref(
&self,
) -> Result<&StorageFullError, TryUnwrapError<&Self>>
pub fn try_unwrap_storage_full_ref( &self, ) -> Result<&StorageFullError, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the StartQueryError::StorageFull variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for StartQueryError
impl Clone for StartQueryError
Source§fn clone(&self) -> StartQueryError
fn clone(&self) -> StartQueryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StartQueryError
impl Debug for StartQueryError
Source§impl Display for StartQueryError
impl Display for StartQueryError
Source§impl Error for StartQueryError
impl Error for StartQueryError
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<StorageFullError> for StartQueryError
impl From<StorageFullError> for StartQueryError
Source§fn from(source: StorageFullError) -> Self
fn from(source: StorageFullError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StartQueryError
impl RefUnwindSafe for StartQueryError
impl Send for StartQueryError
impl Sync for StartQueryError
impl Unpin for StartQueryError
impl UnsafeUnpin for StartQueryError
impl UnwindSafe for StartQueryError
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