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