pub enum LocalStorageGetItemError {
KeyTooLong,
KeyNotUtf8,
OutBufferBelowMinimumSize,
OutBufferSmallerThanValue {
value_len: usize,
},
Unrecognized {
error_code: i32,
},
}Expand description
An error when attempting to retrieve an value from local storage.
Variants§
KeyTooLong
The key was too long.
KeyNotUtf8
The key’s bytes were not valid UTF-8.
OutBufferBelowMinimumSize
The out buffer was smaller than the length of the input element’s value.
OutBufferSmallerThanValue
The out buffer was smaller than the length of the local storage item’s value.
Unrecognized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalStorageGetItemError
impl RefUnwindSafe for LocalStorageGetItemError
impl Send for LocalStorageGetItemError
impl Sync for LocalStorageGetItemError
impl Unpin for LocalStorageGetItemError
impl UnsafeUnpin for LocalStorageGetItemError
impl UnwindSafe for LocalStorageGetItemError
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