pub struct Service<P> { /* private fields */ }Expand description
Thin server adapter from the canonical wire service to one provider.
Implementations§
Trait Implementations§
Source§impl<P: StreamProvider> StreamService for Service<P>
impl<P: StreamProvider> StreamService for Service<P>
Source§type ReadStream = Pin<Box<dyn Stream<Item = Result<ReadResponse, Status>> + Send>>
type ReadStream = Pin<Box<dyn Stream<Item = Result<ReadResponse, Status>> + Send>>
Server streaming response type for the Read method.
Source§type FollowStream = Pin<Box<dyn Stream<Item = Result<ReadResponse, Status>> + Send>>
type FollowStream = Pin<Box<dyn Stream<Item = Result<ReadResponse, Status>> + Send>>
Server streaming response type for the Follow method.
Source§type ChildrenStream = Pin<Box<dyn Stream<Item = Result<ChildrenResponse, Status>> + Send>>
type ChildrenStream = Pin<Box<dyn Stream<Item = Result<ChildrenResponse, Status>> + Send>>
Server streaming response type for the Children method.
fn inspect_idempotency<'life0, 'async_trait>(
&'life0 self,
request: Request<InspectIdempotencyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InspectIdempotencyResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
request: Request<AppendRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AppendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tail<'life0, 'async_trait>(
&'life0 self,
request: Request<TailRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TailResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fork<'life0, 'async_trait>(
&'life0 self,
request: Request<ForkRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ForkReceipt>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trim<'life0, 'async_trait>(
&'life0 self,
request: Request<TrimRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TrimReceipt>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteReceipt>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ReadStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn follow<'life0, 'async_trait>(
&'life0 self,
request: Request<FollowRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::FollowStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn children<'life0, 'async_trait>(
&'life0 self,
request: Request<ChildrenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChildrenStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 self,
request: Request<CommitRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommitResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_commit<'life0, 'async_trait>(
&'life0 self,
request: Request<ReadCommitRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommittedEnvelope>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<P> Freeze for Service<P>
impl<P> RefUnwindSafe for Service<P>where
Arc<P>: RefUnwindSafe,
impl<P> Send for Service<P>
impl<P> Sync for Service<P>
impl<P> Unpin for Service<P>
impl<P> UnsafeUnpin for Service<P>where
Arc<P>: UnsafeUnpin,
impl<P> UnwindSafe for Service<P>where
Arc<P>: UnwindSafe,
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