Struct sbd::storage::MemoryStorage [] [src]

pub struct MemoryStorage { /* fields omitted */ }

A simple storage backend that saves the messages in memory.

Methods

impl Storage
[src]

Creates a new memory storage.

Examples

let storage = sbd::storage::MemoryStorage::new();

Trait Implementations

impl Debug for Storage
[src]

Formats the value using the given formatter.

impl Default for Storage
[src]

Returns the "default value" for a type. Read more

impl Storage for Storage
[src]

Stores a message, consuming it. Read more

Retrieves all messages in this storage as a vector. Read more

Retrieves all messages for a given IMEI. Read more