Struct rubbish::cas::Storage [] [src]

pub struct Storage<T: Encodable + Decodable> { /* fields omitted */ }

Type Storage provides a distributed content-addressible storage pool. The content inserted into the mechanism can be of any type implementing the rustc_serialize traits Decodable and Encodable.

TODO

  • Actually be distributed

Methods

impl<T: Encodable + Decodable> Storage<T>
[src]

Create a new, empty storage pool.

Trait Implementations

impl<T: Debug + Encodable + Decodable> Debug for Storage<T>
[src]

Formats the value using the given formatter.

impl<T: Encodable + Decodable> ContentAddressibleStorage<T> for Storage<T>
[src]

Insert content into the storage pool, returning the Hash pointing to the content. Read more

Retrieve content by hash.