bookclerk_plugin_abi::plugin_capnp::sockets
| Item | Kind | Summary |
|---|---|---|
Server |
trait | |
Client |
struct | |
Owned |
struct | |
ServerDispatch |
struct | |
ConnectParams |
type alias | |
ConnectResults |
type alias | |
SendParams |
type alias | |
SendResults |
type alias | |
CloseParams |
type alias | |
CloseResults |
type alias | |
SetAttachmentParams |
type alias | |
SetAttachmentResults |
type alias | |
ListParams |
type alias | |
ListResults |
type alias |
connect_paramsconnect_resultssend_paramssend_resultsclose_paramsclose_resultsset_attachment_paramsset_attachment_resultslist_paramslist_results
pub trait Server: 'static {
fn connect(
self: Rc<Self>,
_: ConnectParams,
_: ConnectResults,
) -> impl Future<Output = Result<(), Error>> + 'static;
fn send(
self: Rc<Self>,
_: SendParams,
_: SendResults,
) -> impl Future<Output = Result<(), Error>> + 'static;
fn close(
self: Rc<Self>,
_: CloseParams,
_: CloseResults,
) -> impl Future<Output = Result<(), Error>> + 'static;
fn set_attachment(
self: Rc<Self>,
_: SetAttachmentParams,
_: SetAttachmentResults,
) -> impl Future<Output = Result<(), Error>> + 'static;
fn list(
self: Rc<Self>,
_: ListParams,
_: ListResults,
) -> impl Future<Output = Result<(), Error>> + 'static;
}
fn connect(
self: Rc<Self>,
_: ConnectParams,
_: ConnectResults,
) -> impl Future<Output = Result<(), Error>> + 'static
fn send(
self: Rc<Self>,
_: SendParams,
_: SendResults,
) -> impl Future<Output = Result<(), Error>> + 'static
fn close(
self: Rc<Self>,
_: CloseParams,
_: CloseResults,
) -> impl Future<Output = Result<(), Error>> + 'static
fn set_attachment(
self: Rc<Self>,
_: SetAttachmentParams,
_: SetAttachmentResults,
) -> impl Future<Output = Result<(), Error>> + 'static
fn list(
self: Rc<Self>,
_: ListParams,
_: ListResults,
) -> impl Future<Output = Result<(), Error>> + 'static
pub struct Client {
pub client: Client,
}
pub fn connect_request(&self) -> Request<Owned, Owned>
pub fn send_request(&self) -> Request<Owned, Owned>
pub fn close_request(&self) -> Request<Owned, Owned>
pub fn set_attachment_request(&self) -> Request<Owned, Owned>
pub fn list_request(&self) -> Request<Owned, Owned>
Implements: Clone, FromClientHook, FromPointerBuilder<'a>, FromPointerReader<'a>, FromServer<_S>, HasTypeId, SetterInput<Owned>
pub struct Owned(/* private */);
Implements: Clone, Copy, Introspect, Owned, Pipelined, SetterInput<Owned>
pub struct ServerDispatch<_T> {
pub server: Rc<_T>,
}
pub fn dispatch_call_internal(
this: Rc<_T>,
method_id: u16,
params: Params<Owned>,
results: Results<Owned>,
) -> DispatchCallResult
Implements: Clone, Deref, Server
pub type ConnectParams = Params<Owned>;
pub type ConnectResults = Results<Owned>;
pub type SendParams = Params<Owned>;
pub type SendResults = Results<Owned>;
pub type CloseParams = Params<Owned>;
pub type CloseResults = Results<Owned>;
pub type SetAttachmentParams = Params<Owned>;
pub type SetAttachmentResults = Results<Owned>;
pub type ListParams = Params<Owned>;
pub type ListResults = Results<Owned>;
Generated from crates/bookclerk-plugin-abi at main · View as Markdown