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

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Storage
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Storage
[src]

impl InstanceOf for Storage
[src]

[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for Storage
[src]

[src]

Performs the conversion.

impl ReferenceType for Storage
[src]

[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]

[src]

Performs the conversion.

impl TryFrom<Storage> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for Storage
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

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

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for Storage
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

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

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for Storage
[src]

Auto Trait Implementations

impl Send for Storage

impl Sync for Storage