[−][src]Trait rustbreak::backend::Backend
The Backend Trait.
It should always read and save in full the data that it is passed. This means that a write to the backend followed by a read must return the same dataset.
Important: You can only return custom errors if the other_errors
feature is enabled
Required methods
fn get_data(&mut self) -> BackendResult<Vec<u8>>
Read the all data from the backend.
fn put_data(&mut self, data: &[u8]) -> BackendResult<()>
Write the whole slice to the backend.