Struct stdweb::web::Storage [] [src]

pub struct Storage(_);

The Storage interface of the Web Storage API provides access to the session storage or local storage for a particular domain.

(JavaScript docs)

Methods

impl Storage
[src]

Gets the number of data items stored in the Storage object.

(JavaScript docs)

Returns a value corresponding to the key.

(JavaScript docs)

Inserts a key-value pair into the storage.

(JavaScript docs)

Removes a key from the storage.

(JavaScript docs)

When invoked, will empty all keys out of the storage.

(JavaScript docs)

Return the name of the nth key in the storage.

(JavaScript docs)

Returns true if the storage contains a value for the specified key.

Trait Implementations

impl Debug for Storage
[src]

Formats the value using the given formatter.

impl Clone for Storage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<Reference> for Storage
[src]

Performs the conversion.

impl<T: TryInto<Reference>> TryFrom<T> for Storage where
    T::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.