pub struct InvocationServer {
pub collection: SharedComponent,
/* private fields */
}
Expand description
A GRPC server for implementers of flow_component::Component.
Fields§
§collection: SharedComponent
The 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
Source§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 !Freeze for InvocationServer
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