pub struct ProtobufStreamFormat;Available on crate feature
protobuf only.Expand description
Protobuf messages, each preceded by its length as a LEB128 varint.
Implementations§
Trait Implementations§
Source§impl Clone for ProtobufStreamFormat
impl Clone for ProtobufStreamFormat
Source§fn clone(&self) -> ProtobufStreamFormat
fn clone(&self) -> ProtobufStreamFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtobufStreamFormat
Source§impl Debug for ProtobufStreamFormat
impl Debug for ProtobufStreamFormat
Source§impl Default for ProtobufStreamFormat
impl Default for ProtobufStreamFormat
Source§fn default() -> ProtobufStreamFormat
fn default() -> ProtobufStreamFormat
Returns the “default value” for a type. Read more
Source§impl DefaultFormat for ProtobufStreamFormat
impl DefaultFormat for ProtobufStreamFormat
Source§fn default_format() -> Self
fn default_format() -> Self
The configuration to use when the caller supplied none.
Source§impl StreamFormat for ProtobufStreamFormat
impl StreamFormat for ProtobufStreamFormat
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
A short, stable name, reported as the
format tracing field.Source§fn default_content_type(&self) -> &'static str
fn default_content_type(&self) -> &'static str
The
Content-Type this format emits when encoding.Source§fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
Whether an incoming
Content-Type should be accepted as this format. Read moreSource§impl<T> StreamFormatDecode<T> for ProtobufStreamFormat
impl<T> StreamFormatDecode<T> for ProtobufStreamFormat
Source§type Framer = ProtobufLenPrefixCodec<T>
type Framer = ProtobufLenPrefixCodec<T>
Splits the body into records. Read more
Source§type Parser = IdentityParser
type Parser = IdentityParser
Deserialises framed records.
Source§fn framer(&self, options: &DecodeOptions) -> Self::Framer
fn framer(&self, options: &DecodeOptions) -> Self::Framer
Build a framer for one body.
Source§impl<T> StreamFormatEncode<T> for ProtobufStreamFormatwhere
T: Message,
impl<T> StreamFormatEncode<T> for ProtobufStreamFormatwhere
T: Message,
Auto Trait Implementations§
impl Freeze for ProtobufStreamFormat
impl RefUnwindSafe for ProtobufStreamFormat
impl Send for ProtobufStreamFormat
impl Sync for ProtobufStreamFormat
impl Unpin for ProtobufStreamFormat
impl UnsafeUnpin for ProtobufStreamFormat
impl UnwindSafe for ProtobufStreamFormat
Blanket Implementations§
impl<T> Allocation for T
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