bookclerk_plugin_abi::plugin_capnp::adapter_database_session

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Modules

Traits

Server

pub trait Server: 'static {
    fn capabilities(
        self: Rc<Self>,
        _: CapabilitiesParams,
        _: CapabilitiesResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn execute(
        self: Rc<Self>,
        _: ExecuteParams,
        _: ExecuteResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn close(
        self: Rc<Self>,
        _: CloseParams,
        _: CloseResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn bootstrap(
        self: Rc<Self>,
        _: BootstrapParams,
        _: BootstrapResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn export_identity(
        self: Rc<Self>,
        _: ExportIdentityParams,
        _: ExportIdentityResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn import_identity(
        self: Rc<Self>,
        _: ImportIdentityParams,
        _: ImportIdentityResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn list_user_relations(
        self: Rc<Self>,
        _: ListUserRelationsParams,
        _: ListUserRelationsResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn prepare_unit_restore(
        self: Rc<Self>,
        _: PrepareUnitRestoreParams,
        _: PrepareUnitRestoreResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn drop_user_relations(
        self: Rc<Self>,
        _: DropUserRelationsParams,
        _: DropUserRelationsResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn assert_restore_constraints(
        self: Rc<Self>,
        _: AssertRestoreConstraintsParams,
        _: AssertRestoreConstraintsResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn execute_streamed(
        self: Rc<Self>,
        _: ExecuteStreamedParams,
        _: ExecuteStreamedResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
}

Server::capabilities

fn capabilities(
    self: Rc<Self>,
    _: CapabilitiesParams,
    _: CapabilitiesResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::execute

fn execute(
    self: Rc<Self>,
    _: ExecuteParams,
    _: ExecuteResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::close

fn close(
    self: Rc<Self>,
    _: CloseParams,
    _: CloseResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::bootstrap

fn bootstrap(
    self: Rc<Self>,
    _: BootstrapParams,
    _: BootstrapResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::export_identity

fn export_identity(
    self: Rc<Self>,
    _: ExportIdentityParams,
    _: ExportIdentityResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::import_identity

fn import_identity(
    self: Rc<Self>,
    _: ImportIdentityParams,
    _: ImportIdentityResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::list_user_relations

fn list_user_relations(
    self: Rc<Self>,
    _: ListUserRelationsParams,
    _: ListUserRelationsResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::prepare_unit_restore

fn prepare_unit_restore(
    self: Rc<Self>,
    _: PrepareUnitRestoreParams,
    _: PrepareUnitRestoreResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::drop_user_relations

fn drop_user_relations(
    self: Rc<Self>,
    _: DropUserRelationsParams,
    _: DropUserRelationsResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::assert_restore_constraints

fn assert_restore_constraints(
    self: Rc<Self>,
    _: AssertRestoreConstraintsParams,
    _: AssertRestoreConstraintsResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::execute_streamed

fn execute_streamed(
    self: Rc<Self>,
    _: ExecuteStreamedParams,
    _: ExecuteStreamedResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Structs

Client

pub struct Client {
    pub client: Client,
}

Client::capabilities_request

pub fn capabilities_request(&self) -> Request<Owned, Owned>

Client::execute_request

pub fn execute_request(&self) -> Request<Owned, Owned>

Client::close_request

pub fn close_request(&self) -> Request<Owned, Owned>

Client::bootstrap_request

pub fn bootstrap_request(&self) -> Request<Owned, Owned>

Client::export_identity_request

pub fn export_identity_request(&self) -> Request<Owned, Owned>

Client::import_identity_request

pub fn import_identity_request(&self) -> Request<Owned, Owned>

Client::list_user_relations_request

pub fn list_user_relations_request(&self) -> Request<Owned, Owned>

Client::prepare_unit_restore_request

pub fn prepare_unit_restore_request(&self) -> Request<Owned, Owned>

Client::drop_user_relations_request

pub fn drop_user_relations_request(&self) -> Request<Owned, Owned>

Client::assert_restore_constraints_request

pub fn assert_restore_constraints_request(&self) -> Request<Owned, Owned>

Client::execute_streamed_request

pub fn execute_streamed_request(&self) -> Request<Owned, Owned>

Implements: Clone, FromClientHook, FromPointerBuilder<'a>, FromPointerReader<'a>, FromServer<_S>, HasTypeId, SetterInput<Owned>

Owned

pub struct Owned(/* private */);

Implements: Clone, Copy, Introspect, Owned, Pipelined, SetterInput<Owned>

ServerDispatch

pub struct ServerDispatch<_T> {
    pub server: Rc<_T>,
}

ServerDispatch::dispatch_call_internal

pub fn dispatch_call_internal(
    this: Rc<_T>,
    method_id: u16,
    params: Params<Owned>,
    results: Results<Owned>,
) -> DispatchCallResult

Implements: Clone, Deref, Server

Type aliases

CapabilitiesParams

pub type CapabilitiesParams = Params<Owned>;

CapabilitiesResults

pub type CapabilitiesResults = Results<Owned>;

ExecuteParams

pub type ExecuteParams = Params<Owned>;

ExecuteResults

pub type ExecuteResults = Results<Owned>;

CloseParams

pub type CloseParams = Params<Owned>;

CloseResults

pub type CloseResults = Results<Owned>;

BootstrapParams

pub type BootstrapParams = Params<Owned>;

BootstrapResults

pub type BootstrapResults = Results<Owned>;

ExportIdentityParams

pub type ExportIdentityParams = Params<Owned>;

ExportIdentityResults

pub type ExportIdentityResults = Results<Owned>;

ImportIdentityParams

pub type ImportIdentityParams = Params<Owned>;

ImportIdentityResults

pub type ImportIdentityResults = Results<Owned>;

ListUserRelationsParams

pub type ListUserRelationsParams = Params<Owned>;

ListUserRelationsResults

pub type ListUserRelationsResults = Results<Owned>;

PrepareUnitRestoreParams

pub type PrepareUnitRestoreParams = Params<Owned>;

PrepareUnitRestoreResults

pub type PrepareUnitRestoreResults = Results<Owned>;

DropUserRelationsParams

pub type DropUserRelationsParams = Params<Owned>;

DropUserRelationsResults

pub type DropUserRelationsResults = Results<Owned>;

AssertRestoreConstraintsParams

pub type AssertRestoreConstraintsParams = Params<Owned>;

AssertRestoreConstraintsResults

pub type AssertRestoreConstraintsResults = Results<Owned>;

ExecuteStreamedParams

pub type ExecuteStreamedParams = Params<Owned>;

ExecuteStreamedResults

pub type ExecuteStreamedResults = Results<Owned>;

Generated from crates/bookclerk-plugin-abi at main · View as Markdown