Skip to main content

ApiBuilder

Trait ApiBuilder 

Source
pub trait ApiBuilder: MaybeSend + MaybeSync {
    type Output: MaybeSend + MaybeSync;
    type Error: MaybeSend + MaybeSync + Debug;

    // Required method
    fn build(self) -> Result<Self::Output, Self::Error>;
}
Expand description

Build an API from its parts for the XMTP Backend

Required Associated Types§

Source

type Output: MaybeSend + MaybeSync

Source

type Error: MaybeSend + MaybeSync + Debug

Required Methods§

Source

fn build(self) -> Result<Self::Output, Self::Error>

Build the api client

Implementations on Foreign Types§

§

impl ApiBuilder for ClientBuilder

§

type Output = GrpcClient

§

type Error = GrpcBuilderError

§

fn build( self, ) -> Result<<ClientBuilder as ApiBuilder>::Output, <ClientBuilder as ApiBuilder>::Error>

Implementors§