pub enum KeyError {
EmptyLoginId,
LoginIdTooLong {
actual: usize,
max: usize,
},
NamespacedIdUnsupportedByLayout {
api: &'static str,
},
}Expand description
Storage key construction error | 存储键构造错误
Variants§
EmptyLoginId
login_id is empty | login_id 为空
LoginIdTooLong
login_id exceeds [MAX_LOGIN_ID_LEN] bytes | login_id 超过 [MAX_LOGIN_ID_LEN] 字节
NamespacedIdUnsupportedByLayout
A namespaced-id API was called under a layout that cannot support it 在无法支持的布局下调用了「已命名空间化 id」API
Trait Implementations§
impl Eq for KeyError
Source§impl Error for KeyError
impl Error for KeyError
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()
impl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl Freeze for KeyError
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
impl UnwindSafe for KeyError
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