BackendOperationResult: Add optional type parameter

This commit is contained in:
Matthias Beyer 2015-12-02 11:48:07 +01:00
parent d35e89f27c
commit 9a0cc75c6f

View file

@ -20,7 +20,7 @@ use storage::parser::{FileHeaderParser, Parser, ParserError};
use module::Module;
use runtime::Runtime;
pub type BackendOperationResult = Result<(), StorageBackendError>;
pub type BackendOperationResult<T = ()> = Result<T, StorageBackendError>;
pub struct StorageBackend {
basepath: String,