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 Clone for Storage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Storage
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Storage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Storage
[src]

impl InstanceOf for Storage
[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for Storage
[src]

Performs the conversion.

impl ReferenceType for Storage
[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<Storage> for Reference
[src]

Performs the conversion.

impl TryFrom<Storage> for Reference
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Reference> for Storage
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for Storage
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Value> for Storage
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for Storage
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl JsSerialize for Storage
[src]

Auto Trait Implementations

impl Send for Storage

impl Sync for Storage