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]

[src]

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

(JavaScript docs)

[src]

Returns a value corresponding to the key.

(JavaScript docs)

[src]

Inserts a key-value pair into the storage.

(JavaScript docs)

[src]

Removes a key from the storage.

(JavaScript docs)

[src]

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

(JavaScript docs)

[src]

Return the name of the nth key in the storage.

(JavaScript docs)

[src]

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

Trait Implementations

impl Debug for Storage
[src]

[src]

Formats the value using the given formatter.

impl Clone for Storage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<Reference> for Storage
[src]

[src]

Performs the conversion.

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

The type returned in the event of a conversion error.

[src]

Performs the conversion.