pub struct PluginServer<P> { /* private fields */ }
Expand description
Runs the Hipcheck plugin protocol based on the user’s implementation of the Plugin
trait.
This struct implements the underlying gRPC protocol that is not exposed to the plugin author.
Implementations§
Source§impl<P: Plugin> PluginServer<P>
impl<P: Plugin> PluginServer<P>
Trait Implementations§
Source§impl<P: Plugin> PluginService for PluginServer<P>
impl<P: Plugin> PluginService for PluginServer<P>
Source§type GetQuerySchemasStream = ReceiverStream<Result<GetQuerySchemasResponse, Status>>
type GetQuerySchemasStream = ReceiverStream<Result<GetQuerySchemasResponse, Status>>
Server streaming response type for the GetQuerySchemas method.
Source§type InitiateQueryProtocolStream = ReceiverStream<Result<InitiateQueryProtocolResponse, Status>>
type InitiateQueryProtocolStream = ReceiverStream<Result<InitiateQueryProtocolResponse, Status>>
Server streaming response type for the InitiateQueryProtocol method.
Source§fn set_configuration<'life0, 'async_trait>(
&'life0 self,
req: Req<SetConfigurationReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<SetConfigurationResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_configuration<'life0, 'async_trait>(
&'life0 self,
req: Req<SetConfigurationReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<SetConfigurationResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_default_policy_expression<'life0, 'async_trait>(
&'life0 self,
_req: Req<GetDefaultPolicyExpressionReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<GetDefaultPolicyExpressionResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_default_policy_expression<'life0, 'async_trait>(
&'life0 self,
_req: Req<GetDefaultPolicyExpressionReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<GetDefaultPolicyExpressionResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn explain_default_query<'life0, 'async_trait>(
&'life0 self,
_req: Req<ExplainDefaultQueryReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<ExplainDefaultQueryResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn explain_default_query<'life0, 'async_trait>(
&'life0 self,
_req: Req<ExplainDefaultQueryReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<ExplainDefaultQueryResp>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_query_schemas<'life0, 'async_trait>(
&'life0 self,
_req: Req<GetQuerySchemasReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<Self::GetQuerySchemasStream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_query_schemas<'life0, 'async_trait>(
&'life0 self,
_req: Req<GetQuerySchemasReq>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<Self::GetQuerySchemasStream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn initiate_query_protocol<'life0, 'async_trait>(
&'life0 self,
req: Req<Streaming<InitiateQueryProtocolReq>>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<Self::InitiateQueryProtocolStream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initiate_query_protocol<'life0, 'async_trait>(
&'life0 self,
req: Req<Streaming<InitiateQueryProtocolReq>>,
) -> Pin<Box<dyn Future<Output = QueryResult<Resp<Self::InitiateQueryProtocolStream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<P> Freeze for PluginServer<P>
impl<P> RefUnwindSafe for PluginServer<P>where
P: RefUnwindSafe,
impl<P> Send for PluginServer<P>
impl<P> Sync for PluginServer<P>
impl<P> Unpin for PluginServer<P>
impl<P> UnwindSafe for PluginServer<P>where
P: RefUnwindSafe,
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