bookclerk_plugin_abi::plugin_capnp::notifier

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
HealthParams type alias
HealthResults type alias
SendParams type alias
SendResults type alias
ValidateDestinationParams type alias
ValidateDestinationResults type alias

Modules

Traits

Server

pub trait Server: 'static {
    fn health(
        self: Rc<Self>,
        _: HealthParams,
        _: HealthResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn send(
        self: Rc<Self>,
        _: SendParams,
        _: SendResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn validate_destination(
        self: Rc<Self>,
        _: ValidateDestinationParams,
        _: ValidateDestinationResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
}

Server::health

fn health(
    self: Rc<Self>,
    _: HealthParams,
    _: HealthResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::send

fn send(
    self: Rc<Self>,
    _: SendParams,
    _: SendResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::validate_destination

fn validate_destination(
    self: Rc<Self>,
    _: ValidateDestinationParams,
    _: ValidateDestinationResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Structs

Client

pub struct Client {
    pub client: Client,
}

Client::health_request

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

Client::send_request

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

Client::validate_destination_request

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

HealthParams

pub type HealthParams = Params<Owned>;

HealthResults

pub type HealthResults = Results<Owned>;

SendParams

pub type SendParams = Params<Owned>;

SendResults

pub type SendResults = Results<Owned>;

ValidateDestinationParams

pub type ValidateDestinationParams = Params<Owned>;

ValidateDestinationResults

pub type ValidateDestinationResults = Results<Owned>;

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