pub struct Collection { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Component for Collection
impl Component for Collection
Source§fn handle(
&self,
invocation: Invocation,
_data: Option<RuntimeConfig>,
_callback: Arc<RuntimeCallback>,
) -> BoxFuture<'_, Result<PacketStream, ComponentError>>
fn handle( &self, invocation: Invocation, _data: 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 Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request