pub fn destroy(&self,
                   blackboard_id: &Uuid) -> Result<(), LocalBlackboardError> {

        let path = {
            match self.local_blackboards.remove(blackboard_id) {
                Some((_, blackboard)) =>
                    blackboard.as_ref().get_path(),
                None =>
                    Result::Err(
                        LocalBlackboardError::BlackboardOfGivenIdNotFound(blackboard_id.clone()))
            }
        }?;

        LocalBlackboard::destroy(path)
    }
///
/// Note that this may delete bb but will not cleanup afterwards, it has to do with locking
/// scheme of RocksDb. This will be handled in self-healing feature.
///
Note that this may delete bb but will not cleanup afterwards, it has to do with locking
scheme of RocksDb. This will be handled in self-healing feature.
Note that this may delete bb but will not cleanup afterwards it has to do with locking scheme of RocksDb . This will be handled in self - healing feature .
pub fn destroy(&self,
                   blackboard_id: &Uuid) -> Result<(), LocalBlackboardError> {
        let path = {
            match self.local_blackboards.remove(blackboard_id) {
                Some((_, blackboard)) =>
                    blackboard.as_ref().get_path(),
                None =>
                    Result::Err(
                        LocalBlackboardError::BlackboardOfGivenIdNotFound(blackboard_id.clone()))
            }
        }?;
        LocalBlackboard::destroy(path)
    }
pub fn destroy ( & self , blackboard_id : & Uuid ) -> Result < ( ) , LocalBlackboardError > { let path = { match self . local_blackboards . remove ( blackboard_id ) { Some ( ( _ , blackboard ) ) => blackboard . as_ref ( ) . get_path ( ) , None => Result :: Err ( LocalBlackboardError :: BlackboardOfGivenIdNotFound ( blackboard_id . clone ( ) ) ) } } ? ; LocalBlackboard :: destroy ( path ) }
Note that this may delete bb but will not cleanup afterwards, it has to do with locking
scheme of RocksDb.
Note that this may delete bb but will not cleanup afterwards it has to do with locking scheme of RocksDb .
&self
blackboard_id
&Uuid
&self
blackboard_id
&Uuid