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 duplicate 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: LocalScope,
) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
fn handle( &self, invocation: Invocation, op_config: Option<RuntimeConfig>, _callback: LocalScope, ) -> 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 Freeze for HttpClientComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more