Struct wick_invocation_server::InvocationServer
source · pub struct InvocationServer {
pub collection: SharedComponent,
/* private fields */
}Expand description
A GRPC server for implementers of flow_component::Component.
Fields§
§collection: SharedComponentThe component that will handle incoming requests.
Implementations§
source§impl InvocationServer
impl InvocationServer
sourcepub fn new(collection: SharedComponent) -> Self
pub fn new(collection: SharedComponent) -> Self
Constructor.
Trait Implementations§
source§impl Debug for InvocationServer
impl Debug for InvocationServer
source§impl InvocationService for InvocationServer
impl InvocationService for InvocationServer
§type InvokeStream = ReceiverStream<Result<Packet, Status>>
type InvokeStream = ReceiverStream<Result<Packet, Status>>
Server streaming response type for the Invoke method.
fn invoke<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<InvocationRequest>> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::InvokeStream>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn list<'life0, 'async_trait>( &'life0 self, _request: Request<ListRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<ListResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn stats<'life0, 'async_trait>( &'life0 self, _request: Request<StatsRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<StatsResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for InvocationServer
impl Send for InvocationServer
impl Sync for InvocationServer
impl Unpin for InvocationServer
impl !UnwindSafe for InvocationServer
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