Skip to main content

DatasetProxyInterface

Trait DatasetProxyInterface 

Source
pub trait DatasetProxyInterface: Send + Sync {
    type GetActiveTlvsResponseFut: Future<Output = Result<Option<Vec<u8>>, Error>> + Send;
    type SetActiveTlvsResponseFut: Future<Output = Result<(), Error>> + Send;
    type AttachAllNodesToResponseFut: Future<Output = Result<i64, Error>> + Send;

    // Required methods
    fn get_active_tlvs(&self) -> Self::GetActiveTlvsResponseFut;
    fn set_active_tlvs(&self, dataset: &[u8]) -> Self::SetActiveTlvsResponseFut;
    fn attach_all_nodes_to(
        &self,
        dataset: &[u8],
    ) -> Self::AttachAllNodesToResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§