pub struct GrpcState {
pub executor: Arc<dyn Executor>,
pub max_recv_message_size: usize,
pub max_send_message_size: usize,
pub compression: bool,
pub metrics: Option<GrpcMetrics>,
pub descriptors: Option<Arc<DescriptorPool>>,
}Fields§
§executor: Arc<dyn Executor>§max_recv_message_size: usize§max_send_message_size: usize§compression: bool§metrics: Option<GrpcMetrics>§descriptors: Option<Arc<DescriptorPool>>Descriptor pool for proto↔native transcoding (phase 87). Some only when
[grpc] transcode = true and a pool was built (from proto and/or
descriptor_set). None ⇒ raw passthrough: incoming bytes are base64’d to
PHP and the response base64 is returned verbatim (legacy behaviour, BC).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GrpcState
impl !UnwindSafe for GrpcState
impl Freeze for GrpcState
impl Send for GrpcState
impl Sync for GrpcState
impl Unpin for GrpcState
impl UnsafeUnpin for GrpcState
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