pub struct TranscoderBuilder { /* private fields */ }Expand description
Builds a descriptor-driven transcoder from a compiled FileDescriptorSet.
Implementations§
Source§impl TranscoderBuilder
impl TranscoderBuilder
pub fn from_descriptor_set( bytes: impl AsRef<[u8]>, channel: Channel, ) -> Result<Self, TranscodeError>
Sourcepub async fn from_reflection(channel: Channel) -> Result<Self, TranscodeError>
pub async fn from_reflection(channel: Channel) -> Result<Self, TranscodeError>
Loads all service descriptors advertised by the standard gRPC v1 reflection service.
pub fn add_binding(self, binding: HttpBinding) -> Self
Sourcepub fn load_annotated_bindings(self) -> Self
pub fn load_annotated_bindings(self) -> Self
Loads google.api.http primary and additional bindings when those extensions are present
in the descriptor set. Explicit bindings may be mixed with annotated bindings.
pub fn build(self) -> Result<Transcoder, TranscodeError>
Auto Trait Implementations§
impl !RefUnwindSafe for TranscoderBuilder
impl !UnwindSafe for TranscoderBuilder
impl Freeze for TranscoderBuilder
impl Send for TranscoderBuilder
impl Sync for TranscoderBuilder
impl Unpin for TranscoderBuilder
impl UnsafeUnpin for TranscoderBuilder
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