pub struct JsonCodec<T, U>(/* private fields */);Available on crate feature
json-codec only.Expand description
A Codec for JSON application/grpc+json
Trait Implementations§
Source§impl<T, U> Codec for JsonCodec<T, U>
impl<T, U> Codec for JsonCodec<T, U>
Source§const CONTENT_TYPES: &'static [&'static str]
const CONTENT_TYPES: &'static [&'static str]
Content types
Source§fn check_content_type(&self, ct: &str) -> bool
fn check_content_type(&self, ct: &str) -> bool
Returns whether the specified content type is supported
Auto Trait Implementations§
impl<T, U> Freeze for JsonCodec<T, U>
impl<T, U> RefUnwindSafe for JsonCodec<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for JsonCodec<T, U>
impl<T, U> Sync for JsonCodec<T, U>
impl<T, U> Unpin for JsonCodec<T, U>
impl<T, U> UnwindSafe for JsonCodec<T, U>where
T: UnwindSafe,
U: 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