pub trait RealmProxyInterface: Send + Sync {
    type OpenControllerResponseFut: Future<Output = Result<RealmOpenControllerResult, Error>> + Send;
    type OpenExposedDirResponseFut: Future<Output = Result<RealmOpenExposedDirResult, Error>> + Send;
    type CreateChildResponseFut: Future<Output = Result<RealmCreateChildResult, Error>> + Send;
    type DestroyChildResponseFut: Future<Output = Result<RealmDestroyChildResult, Error>> + Send;
    type ListChildrenResponseFut: Future<Output = Result<RealmListChildrenResult, Error>> + Send;

    // Required methods
    fn open_controller(
        &self,
        child: &ChildRef,
        controller: ServerEnd<ControllerMarker>,
    ) -> Self::OpenControllerResponseFut;
    fn open_exposed_dir(
        &self,
        child: &ChildRef,
        exposed_dir: ServerEnd<DirectoryMarker>,
    ) -> Self::OpenExposedDirResponseFut;
    fn create_child(
        &self,
        collection: &CollectionRef,
        decl: &Child,
        args: CreateChildArgs,
    ) -> Self::CreateChildResponseFut;
    fn destroy_child(&self, child: &ChildRef) -> Self::DestroyChildResponseFut;
    fn list_children(
        &self,
        collection: &CollectionRef,
        iter: ServerEnd<ChildIteratorMarker>,
    ) -> Self::ListChildrenResponseFut;
}

Required Associated Types§

Required Methods§

source

fn open_controller( &self, child: &ChildRef, controller: ServerEnd<ControllerMarker>, ) -> Self::OpenControllerResponseFut

source

fn open_exposed_dir( &self, child: &ChildRef, exposed_dir: ServerEnd<DirectoryMarker>, ) -> Self::OpenExposedDirResponseFut

source

fn create_child( &self, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ) -> Self::CreateChildResponseFut

source

fn destroy_child(&self, child: &ChildRef) -> Self::DestroyChildResponseFut

source

fn list_children( &self, collection: &CollectionRef, iter: ServerEnd<ChildIteratorMarker>, ) -> Self::ListChildrenResponseFut

Implementors§

source§

impl RealmProxyInterface for RealmProxy

§

type OpenControllerResponseFut = QueryResponseFut<Result<(), Error>>

§

type OpenExposedDirResponseFut = QueryResponseFut<Result<(), Error>>

§

type CreateChildResponseFut = QueryResponseFut<Result<(), Error>>

§

type DestroyChildResponseFut = QueryResponseFut<Result<(), Error>>

§

type ListChildrenResponseFut = QueryResponseFut<Result<(), Error>>