pub struct LocalStorageValue {
pub text: String,
pub lossy: bool,
}Expand description
A WebKit/Chrome Local Storage ItemTable.value decoded to text, plus whether
the decode was lossy. lossy is a struct field, not a side-channel warning,
so a caller cannot render a lossy value as if it were faithfully recovered
(secure by design).
Fields§
§text: StringThe decoded string; any code unit that could not be decoded is a U+FFFD.
lossy: booltrue when at least one input byte/unit could not be decoded cleanly (an
odd-length BLOB or an unpaired surrogate).
Trait Implementations§
Source§impl Clone for LocalStorageValue
impl Clone for LocalStorageValue
Source§fn clone(&self) -> LocalStorageValue
fn clone(&self) -> LocalStorageValue
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 LocalStorageValue
impl Debug for LocalStorageValue
Source§impl Default for LocalStorageValue
impl Default for LocalStorageValue
Source§fn default() -> LocalStorageValue
fn default() -> LocalStorageValue
Returns the “default value” for a type. Read more
impl Eq for LocalStorageValue
Source§impl PartialEq for LocalStorageValue
impl PartialEq for LocalStorageValue
impl StructuralPartialEq for LocalStorageValue
Auto Trait Implementations§
impl Freeze for LocalStorageValue
impl RefUnwindSafe for LocalStorageValue
impl Send for LocalStorageValue
impl Sync for LocalStorageValue
impl Unpin for LocalStorageValue
impl UnsafeUnpin for LocalStorageValue
impl UnwindSafe for LocalStorageValue
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