pub struct SubmitServiceServer<T>where
T: SubmitService,{ /* private fields */ }Expand description
Service definition for submitting transactions and checking their status.
Implementations§
Source§impl<T> SubmitServiceServer<T>where
T: SubmitService,
impl<T> SubmitServiceServer<T>where
T: SubmitService,
pub fn new(inner: T) -> SubmitServiceServer<T>
pub fn from_arc(inner: Arc<T>) -> SubmitServiceServer<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterceptedService<SubmitServiceServer<T>, F>where
F: Interceptor,
Sourcepub fn accept_compressed(
self,
encoding: CompressionEncoding,
) -> SubmitServiceServer<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> SubmitServiceServer<T>
Enable decompressing requests with the given encoding.
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> SubmitServiceServer<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> SubmitServiceServer<T>
Compress responses with the given encoding, if the client supports it.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> SubmitServiceServer<T>
pub fn max_decoding_message_size(self, limit: usize) -> SubmitServiceServer<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> SubmitServiceServer<T>
pub fn max_encoding_message_size(self, limit: usize) -> SubmitServiceServer<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Trait Implementations§
Source§impl<T> Clone for SubmitServiceServer<T>where
T: SubmitService,
impl<T> Clone for SubmitServiceServer<T>where
T: SubmitService,
Source§fn clone(&self) -> SubmitServiceServer<T>
fn clone(&self) -> SubmitServiceServer<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for SubmitServiceServer<T>where
T: Debug + SubmitService,
impl<T> Debug for SubmitServiceServer<T>where
T: Debug + SubmitService,
Source§impl<T> NamedService for SubmitServiceServer<T>where
T: SubmitService,
impl<T> NamedService for SubmitServiceServer<T>where
T: SubmitService,
Source§impl<T, B> Service<Request<B>> for SubmitServiceServer<T>
impl<T, B> Service<Request<B>> for SubmitServiceServer<T>
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<SubmitServiceServer<T> as Service<Request<B>>>::Response, <SubmitServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<SubmitServiceServer<T> as Service<Request<B>>>::Response, <SubmitServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<T> Freeze for SubmitServiceServer<T>
impl<T> RefUnwindSafe for SubmitServiceServer<T>where
T: RefUnwindSafe,
impl<T> Send for SubmitServiceServer<T>
impl<T> Sync for SubmitServiceServer<T>
impl<T> Unpin for SubmitServiceServer<T>
impl<T> UnwindSafe for SubmitServiceServer<T>where
T: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
Source§type ResponseBody = ResBody
type ResponseBody = ResBody
Responses body given by the service.
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
Returns
Ready when the service is able to process requests. Read moreSource§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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