Trait wildland_corex::IBridge
source · [−]pub trait IBridge {
fn uuid(&self) -> Uuid;
fn path(&self) -> String;
fn forest(&self) -> Result<Forest, CatlibError>;
fn link(&self) -> Vec<u8, Global>;
fn update(&mut self, data: Vec<u8, Global>) -> Result<Bridge, CatlibError>;
}Required Methods
fn path(&self) -> String
sourcefn forest(&self) -> Result<Forest, CatlibError>
fn forest(&self) -> Result<Forest, CatlibError>
Return Forest that contains the Bridge.
Errors
- Returns
CatlibError::NoRecordsFoundif noBridgewas found. - Returns
CatlibError::MalformedDatabaseEntryif more than oneBridgewas found.