bookclerk_plugin_abi::plugin_host_capnp::adapter_transaction

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

Last updated View as Markdown

Item Kind Summary
Server trait
Client struct
Owned struct
ServerDispatch struct
ExecuteParams type alias
ExecuteResults type alias
CommitParams type alias
CommitResults type alias
RollbackParams type alias
RollbackResults type alias
ExportIdentityParams type alias
ExportIdentityResults type alias
ImportIdentityParams type alias
ImportIdentityResults type alias
ListUserRelationsParams type alias
ListUserRelationsResults type alias
PrepareUnitRestoreParams type alias
PrepareUnitRestoreResults type alias
DropUserRelationsParams type alias
DropUserRelationsResults type alias
AssertRestoreConstraintsParams type alias
AssertRestoreConstraintsResults type alias

Modules

Traits

Server

pub trait Server: 'static {
    fn execute(
        self: Rc<Self>,
        _: ExecuteParams,
        _: ExecuteResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn commit(
        self: Rc<Self>,
        _: CommitParams,
        _: CommitResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn rollback(
        self: Rc<Self>,
        _: RollbackParams,
        _: RollbackResults,
    ) -> 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;
}

Server::execute

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

Server::commit

fn commit(
    self: Rc<Self>,
    _: CommitParams,
    _: CommitResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::rollback

fn rollback(
    self: Rc<Self>,
    _: RollbackParams,
    _: RollbackResults,
) -> 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

Structs

Client

pub struct Client {
    pub client: Client,
}

Client::execute_request

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

Client::commit_request

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

Client::rollback_request

pub fn rollback_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>

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

ExecuteParams

pub type ExecuteParams = Params<Owned>;

ExecuteResults

pub type ExecuteResults = Results<Owned>;

CommitParams

pub type CommitParams = Params<Owned>;

CommitResults

pub type CommitResults = Results<Owned>;

RollbackParams

pub type RollbackParams = Params<Owned>;

RollbackResults

pub type RollbackResults = 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>;

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