pub struct LocalHookService { /* private fields */ }Implementations§
Source§impl LocalHookService
impl LocalHookService
pub fn new(inner: GrpcLocalService) -> Self
Trait Implementations§
Source§impl Clone for LocalHookService
impl Clone for LocalHookService
Source§fn clone(&self) -> LocalHookService
fn clone(&self) -> LocalHookService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl HookService for LocalHookService
impl HookService for LocalHookService
Source§type SubscribeHookEventsStream = Pin<Box<dyn Stream<Item = Result<HookEvent, Status>> + Send>>
type SubscribeHookEventsStream = Pin<Box<dyn Stream<Item = Result<HookEvent, Status>> + Send>>
Server streaming response type for the SubscribeHookEvents method.
fn register_hook<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterHookRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ProtoHook>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn deregister_hook<'life0, 'async_trait>(
&'life0 self,
request: Request<DeregisterHookRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_hooks<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListHooksRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListHooksResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_hook_event_schema<'life0, 'async_trait>(
&'life0 self,
request: Request<GetHookEventSchemaRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetHookEventSchemaResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn subscribe_hook_events<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeHookEventsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeHookEventsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_hook_events<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeHookEventsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeHookEventsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Server-streamed live event delivery. Each event carries an
opaque
hook_event_id correlator that the subscriber echoes
back to RespondToHook. Read-shaped — no idempotency.Source§fn respond_to_hook<'life0, 'async_trait>(
&'life0 self,
request: Request<RespondToHookRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RespondToHookResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn respond_to_hook<'life0, 'async_trait>(
&'life0 self,
request: Request<RespondToHookRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RespondToHookResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Deliver the hook’s reply (or veto via
abort) for a previously
received event. State-changing — caller supplies
client_operation_id for retry safety, though the broker will
also dedup on hook_event_id since each id is single-shot.Auto Trait Implementations§
impl Freeze for LocalHookService
impl !RefUnwindSafe for LocalHookService
impl Send for LocalHookService
impl Sync for LocalHookService
impl Unpin for LocalHookService
impl UnsafeUnpin for LocalHookService
impl !UnwindSafe for LocalHookService
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> 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