Trait wildland_corex::IStorage
source · [−]pub trait IStorage {
fn uuid(&self) -> Uuid;
fn template_uuid(&self) -> Option<Uuid>;
fn container(&self) -> Result<Container, CatlibError>;
fn data(&self) -> Vec<u8, Global>;
fn update(&mut self, data: Vec<u8, Global>) -> Result<Storage, CatlibError>;
}
Required Methods
sourcefn template_uuid(&self) -> Option<Uuid>
fn template_uuid(&self) -> Option<Uuid>
Return Template UUID
sourcefn container(&self) -> Result<Container, CatlibError>
fn container(&self) -> Result<Container, CatlibError>
Return Container
that contains the Storage
.
Errors
- Returns
CatlibError::NoRecordsFound
if noContainer
was found. - Returns
CatlibError::MalformedDatabaseEntry
if more than oneContainer
was found.