pub trait StorageMethods<D: DomTypes> {
    // Required methods
    fn Length(&self) -> u32;
    fn Key(&self, index: u32) -> Option<DOMString>;
    fn GetItem(&self, name: DOMString) -> Option<DOMString>;
    fn SetItem(&self, name: DOMString, value: DOMString) -> Result<(), Error>;
    fn RemoveItem(&self, name: DOMString);
    fn Clear(&self);
    fn SupportedPropertyNames(&self) -> Vec<DOMString>;
    fn NamedGetter(&self, name: DOMString) -> Option<DOMString>;
    fn NamedSetter(
        &self,
        name: DOMString,
        value: DOMString,
    ) -> Result<(), Error>;
    fn NamedDeleter(&self, name: DOMString);
}

Required Methods§

source

fn Length(&self) -> u32

source

fn Key(&self, index: u32) -> Option<DOMString>

source

fn GetItem(&self, name: DOMString) -> Option<DOMString>

source

fn SetItem(&self, name: DOMString, value: DOMString) -> Result<(), Error>

source

fn RemoveItem(&self, name: DOMString)

source

fn Clear(&self)

source

fn SupportedPropertyNames(&self) -> Vec<DOMString>

source

fn NamedGetter(&self, name: DOMString) -> Option<DOMString>

source

fn NamedSetter(&self, name: DOMString, value: DOMString) -> Result<(), Error>

source

fn NamedDeleter(&self, name: DOMString)

Implementors§