ToDynApi

Trait ToDynApi 

Source
pub trait ToDynApi: MaybeSend + MaybeSync {
    type Error: MaybeSend + MaybeSync;

    // Required methods
    fn boxed(self) -> FullXmtpApiBox<Self::Error>;
    fn arced(self) -> FullXmtpApiArc<Self::Error>;
}
Expand description

Indicates this api implementation can be type-erased and coerced into a Box or Arc

Required Associated Types§

Required Methods§

Source

fn boxed(self) -> FullXmtpApiBox<Self::Error>

Source

fn arced(self) -> FullXmtpApiArc<Self::Error>

Implementors§

Source§

impl<C, Store, E> ToDynApi for V3Client<C, Store>
where E: RetryableError + 'static, C: Client<Error = E> + IsConnectedCheck + 'static, <C as Client>::Stream: 'static, Store: CursorStore + 'static,

Source§

impl<M, Store, E> ToDynApi for D14nClient<M, Store>
where E: Error + RetryableError + 'static, M: Client<Error = E> + IsConnectedCheck + 'static, Store: CursorStore + Clone + 'static, <M as Client>::Stream: 'static,