pub struct TextStreamFormat;Available on crate feature
text only.Expand description
Raw UTF-8 text, undelimited.
Implementations§
Trait Implementations§
Source§impl Clone for TextStreamFormat
impl Clone for TextStreamFormat
Source§fn clone(&self) -> TextStreamFormat
fn clone(&self) -> TextStreamFormat
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 TextStreamFormat
Source§impl Debug for TextStreamFormat
impl Debug for TextStreamFormat
Source§impl Default for TextStreamFormat
impl Default for TextStreamFormat
Source§fn default() -> TextStreamFormat
fn default() -> TextStreamFormat
Returns the “default value” for a type. Read more
Source§impl DefaultFormat for TextStreamFormat
impl DefaultFormat for TextStreamFormat
Source§fn default_format() -> Self
fn default_format() -> Self
The configuration to use when the caller supplied none.
Source§impl StreamFormat for TextStreamFormat
impl StreamFormat for TextStreamFormat
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 StreamFormatEncode<String> for TextStreamFormat
impl StreamFormatEncode<String> for TextStreamFormat
Auto Trait Implementations§
impl Freeze for TextStreamFormat
impl RefUnwindSafe for TextStreamFormat
impl Send for TextStreamFormat
impl Sync for TextStreamFormat
impl Unpin for TextStreamFormat
impl UnsafeUnpin for TextStreamFormat
impl UnwindSafe for TextStreamFormat
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