pub struct HttpClientProvider { /* private fields */ }
Expand description
An implementation HTTP client provider using reqwest.
Implementations§
Trait Implementations§
Source§impl CapabilityProvider for HttpClientProvider
Implements the CapabilityProvider interface.
impl CapabilityProvider for HttpClientProvider
Implements the CapabilityProvider interface.
Source§fn handle_call(
&self,
actor: &str,
op: &str,
msg: &[u8],
) -> Result<Vec<u8>, Box<dyn Error>>
fn handle_call( &self, actor: &str, op: &str, msg: &[u8], ) -> Result<Vec<u8>, Box<dyn Error>>
Handle all calls from actors.
Source§fn configure_dispatch(
&self,
dispatcher: Box<dyn Dispatcher>,
) -> Result<(), Box<dyn Error>>
fn configure_dispatch( &self, dispatcher: Box<dyn Dispatcher>, ) -> Result<(), Box<dyn Error>>
This function will be called on the provider when the host runtime is ready and has configured a dispatcher. This function is only ever
called once for a capability provider, regardless of the number of actors being managed in the host
Auto Trait Implementations§
impl Freeze for HttpClientProvider
impl !RefUnwindSafe for HttpClientProvider
impl Send for HttpClientProvider
impl Sync for HttpClientProvider
impl Unpin for HttpClientProvider
impl !UnwindSafe for HttpClientProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more