Struct wildland_corex::Forest
source · [−]pub struct Forest { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Forest
impl<'de> Deserialize<'de> for Forest
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Forest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Forest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl IForest for Forest
impl IForest for Forest
sourcefn add_signer(&mut self, signer: Identity) -> Result<bool, CatlibError>
fn add_signer(&mut self, signer: Identity) -> Result<bool, CatlibError>
Add manifest Signer Read more
sourcefn del_signer(&mut self, signer: Identity) -> Result<bool, CatlibError>
fn del_signer(&mut self, signer: Identity) -> Result<bool, CatlibError>
Delete manifest Signer Read more
sourcefn containers(&self) -> Result<Vec<Container, Global>, CatlibError>
fn containers(&self) -> Result<Vec<Container, Global>, CatlibError>
Return list of Forest Containers Read more
sourcefn signers(&self) -> HashSet<Identity, RandomState>
fn signers(&self) -> HashSet<Identity, RandomState>
Return list of manifests Signers
sourcefn update(&mut self, data: Vec<u8, Global>) -> Result<(), CatlibError>
fn update(&mut self, data: Vec<u8, Global>) -> Result<(), CatlibError>
Set Forest arbitrary data Read more
sourcefn create_container(&self) -> Result<Container, CatlibError>
fn create_container(&self) -> Result<Container, CatlibError>
Create an empty container, bound to the Forest. Read more
sourcefn create_bridge(
&self,
path: String,
link_data: Vec<u8, Global>
) -> Result<Bridge, CatlibError>
fn create_bridge(
&self,
path: String,
link_data: Vec<u8, Global>
) -> Result<Bridge, CatlibError>
Create a Bridge obect with arbitrary link data to another Forest. Read more
sourcefn find_bridge(&self, path: String) -> Result<Bridge, CatlibError>
fn find_bridge(&self, path: String) -> Result<Bridge, CatlibError>
Return bridge that matches the given
ContainerPath
. Read moresourcefn find_containers(
&self,
paths: Vec<String, Global>,
include_subdirs: bool
) -> Result<Vec<Container, Global>, CatlibError>
fn find_containers(
&self,
paths: Vec<String, Global>,
include_subdirs: bool
) -> Result<Vec<Container, Global>, CatlibError>
Retrieve Containers that match given
ContainerPath
s. Read moresourceimpl Serialize for Forest
impl Serialize for Forest
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Forest
impl !Send for Forest
impl !Sync for Forest
impl Unpin for Forest
impl UnwindSafe for Forest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more