[][src]Struct webext_storage::api::UsageInfo

pub struct UsageInfo {
    pub ext_id: String,
    pub num_keys: usize,
    pub num_bytes: usize,
}

Information about the usage of a single extension.

Fields

ext_id: String

The extension id.

num_keys: usize

The number of keys the extension uses.

num_bytes: usize

The number of bytes used by the extension. This result is somewhat rough -- it doesn't bother counting the size of the extension ID, or data in the mirror, and favors returning the exact number of bytes used by the column (that is, the size of the JSON object) rather than replicating the get_bytes_in_use return value for all keys.

Trait Implementations

impl Clone for UsageInfo[src]

impl Debug for UsageInfo[src]

impl PartialEq<UsageInfo> for UsageInfo[src]

impl StructuralPartialEq for UsageInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for UsageInfo

impl Send for UsageInfo

impl Sync for UsageInfo

impl Unpin for UsageInfo

impl UnwindSafe for UsageInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,