Skip to main content

ClientEmitter

Trait ClientEmitter 

Source
pub trait ClientEmitter {
    // Required method
    fn emit(&self, service: &Service) -> Result<Vec<TokenStream>>;
}
Expand description

Emits a client for a lowered Service as top-level token items.

One implementation per target HTTP library. ReqwestClient is the only one today.

Required Methods§

Source

fn emit(&self, service: &Service) -> Result<Vec<TokenStream>>

Emit the client items (error type, Client struct, per-operation methods, and the response types they return).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§