Struct juju::unitdata::Storage[][src]

pub struct Storage { /* fields omitted */ }

A connection to the unit's Key/Value data Simple key value database for local unit state within charms. Values are automatically json encoded/decoded.

Methods

impl Storage
[src]

Connect to the unit's database

Get a range of keys starting with a common prefix as a mapping of keys to values.

Set the values of multiple keys at once. Accepts an optional prefix to apply to all keys before setting

Remove a key from the database entirely.

Remove a range of keys starting with a common prefix, from the database entirely. If keys is set to None it will delete all keys Returns number of rows deleted

Set a value in the database.

Trait Implementations

impl Debug for Storage
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Storage

impl !Sync for Storage