bookclerk_plugin_abi::plugin_capnp::database

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
OpenSessionParams type alias
OpenSessionResults type alias
DropUnitParams type alias
DropUnitResults type alias

Modules

Traits

Server

pub trait Server: 'static {
    fn open_session(
        self: Rc<Self>,
        _: OpenSessionParams,
        _: OpenSessionResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn drop_unit(
        self: Rc<Self>,
        _: DropUnitParams,
        _: DropUnitResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
}

Server::open_session

fn open_session(
    self: Rc<Self>,
    _: OpenSessionParams,
    _: OpenSessionResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::drop_unit

fn drop_unit(
    self: Rc<Self>,
    _: DropUnitParams,
    _: DropUnitResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Structs

Client

pub struct Client {
    pub client: Client,
}

Client::open_session_request

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

Client::drop_unit_request

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

OpenSessionParams

pub type OpenSessionParams = Params<Owned>;

OpenSessionResults

pub type OpenSessionResults = Results<Owned>;

DropUnitParams

pub type DropUnitParams = Params<Owned>;

DropUnitResults

pub type DropUnitResults = Results<Owned>;

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