Struct wick_http_client::HttpClientComponent
source · pub struct HttpClientComponent { /* private fields */ }
Implementations§
source§impl HttpClientComponent
impl HttpClientComponent
pub fn new( config: HttpClientComponentConfig, root_config: Option<RuntimeConfig>, metadata: Option<Metadata>, resolver: &Resolver ) -> Result<Self, ComponentError>
Trait Implementations§
source§impl Clone for HttpClientComponent
impl Clone for HttpClientComponent
source§fn clone(&self) -> HttpClientComponent
fn clone(&self) -> HttpClientComponent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Component for HttpClientComponent
impl Component for HttpClientComponent
source§fn handle(
&self,
invocation: Invocation,
op_config: Option<RuntimeConfig>,
_callback: Arc<RuntimeCallback>
) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
fn handle( &self, invocation: Invocation, op_config: Option<RuntimeConfig>, _callback: Arc<RuntimeCallback> ) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
The
handle
method is called when a component’s operation is invoked. The component is expected to delegate to the appopriate operation based on the Invocation target.source§fn signature(&self) -> &ComponentSignature
fn signature(&self) -> &ComponentSignature
The
signature
method returns the ComponentSignature for the component.Auto Trait Implementations§
impl !RefUnwindSafe for HttpClientComponent
impl Send for HttpClientComponent
impl Sync for HttpClientComponent
impl Unpin for HttpClientComponent
impl !UnwindSafe for HttpClientComponent
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