pub enum FramingConfig {
Bytes,
CharacterDelimited(CharacterDelimitedDecoderConfig),
LengthDelimited(LengthDelimitedDecoderConfig),
NewlineDelimited(NewlineDelimitedDecoderConfig),
OctetCounting(OctetCountingDecoderConfig),
ChunkedGelf(ChunkedGelfDecoderConfig),
VarintLengthDelimited(VarintLengthDelimitedDecoderConfig),
}
Expand description
Framing configuration.
Framing handles how events are separated when encoded in a raw byte form, where each event is a frame that must be prefixed, or delimited, in a way that marks where an event begins and ends within the byte stream.
Variants§
Bytes
Byte frames are passed through as-is according to the underlying I/O boundaries (for example, split between messages or stream segments).
CharacterDelimited(CharacterDelimitedDecoderConfig)
Byte frames which are delimited by a chosen character.
LengthDelimited(LengthDelimitedDecoderConfig)
Byte frames which are prefixed by an unsigned big-endian 32-bit integer indicating the length.
NewlineDelimited(NewlineDelimitedDecoderConfig)
Byte frames which are delimited by a newline character.
OctetCounting(OctetCountingDecoderConfig)
Byte frames according to the octet counting format.
ChunkedGelf(ChunkedGelfDecoderConfig)
Byte frames which are chunked GELF messages.
VarintLengthDelimited(VarintLengthDelimitedDecoderConfig)
Byte frames which are prefixed by a varint indicating the length. This is compatible with protobuf’s length-delimited encoding.
Implementations§
Trait Implementations§
Source§impl Clone for FramingConfig
impl Clone for FramingConfig
Source§fn clone(&self) -> FramingConfig
fn clone(&self) -> FramingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Configurable for FramingConfig
impl Configurable for FramingConfig
Source§fn referenceable_name() -> Option<&'static str>
fn referenceable_name() -> Option<&'static str>
Source§fn generate_schema(
schema_gen: &RefCell<SchemaGenerator>,
) -> Result<SchemaObject, GenerateError>
fn generate_schema( schema_gen: &RefCell<SchemaGenerator>, ) -> Result<SchemaObject, GenerateError>
§fn is_optional() -> boolwhere
Self: Sized,
fn is_optional() -> boolwhere
Self: Sized,
§fn validate_metadata(_metadata: &Metadata) -> Result<(), GenerateError>where
Self: Sized,
fn validate_metadata(_metadata: &Metadata) -> Result<(), GenerateError>where
Self: Sized,
§fn as_configurable_ref() -> ConfigurableRefwhere
Self: Sized + 'static,
fn as_configurable_ref() -> ConfigurableRefwhere
Self: Sized + 'static,
Source§impl Debug for FramingConfig
impl Debug for FramingConfig
Source§impl<'de> Deserialize<'de> for FramingConfig
impl<'de> Deserialize<'de> for FramingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<BytesDecoderConfig> for FramingConfig
impl From<BytesDecoderConfig> for FramingConfig
Source§fn from(_: BytesDecoderConfig) -> Self
fn from(_: BytesDecoderConfig) -> Self
Source§impl From<CharacterDelimitedDecoderConfig> for FramingConfig
impl From<CharacterDelimitedDecoderConfig> for FramingConfig
Source§fn from(config: CharacterDelimitedDecoderConfig) -> Self
fn from(config: CharacterDelimitedDecoderConfig) -> Self
Source§impl From<ChunkedGelfDecoderConfig> for FramingConfig
impl From<ChunkedGelfDecoderConfig> for FramingConfig
Source§fn from(config: ChunkedGelfDecoderConfig) -> Self
fn from(config: ChunkedGelfDecoderConfig) -> Self
Source§impl From<LengthDelimitedDecoderConfig> for FramingConfig
impl From<LengthDelimitedDecoderConfig> for FramingConfig
Source§fn from(config: LengthDelimitedDecoderConfig) -> Self
fn from(config: LengthDelimitedDecoderConfig) -> Self
Source§impl From<NewlineDelimitedDecoderConfig> for FramingConfig
impl From<NewlineDelimitedDecoderConfig> for FramingConfig
Source§fn from(config: NewlineDelimitedDecoderConfig) -> Self
fn from(config: NewlineDelimitedDecoderConfig) -> Self
Source§impl From<OctetCountingDecoderConfig> for FramingConfig
impl From<OctetCountingDecoderConfig> for FramingConfig
Source§fn from(config: OctetCountingDecoderConfig) -> Self
fn from(config: OctetCountingDecoderConfig) -> Self
Source§impl From<VarintLengthDelimitedDecoderConfig> for FramingConfig
impl From<VarintLengthDelimitedDecoderConfig> for FramingConfig
Source§fn from(config: VarintLengthDelimitedDecoderConfig) -> Self
fn from(config: VarintLengthDelimitedDecoderConfig) -> Self
Source§impl Serialize for FramingConfig
impl Serialize for FramingConfig
Auto Trait Implementations§
impl Freeze for FramingConfig
impl RefUnwindSafe for FramingConfig
impl Send for FramingConfig
impl Sync for FramingConfig
impl Unpin for FramingConfig
impl UnwindSafe for FramingConfig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
] or
a color-specific method, such as [OwoColorize::green
], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
] or
a color-specific method, such as [OwoColorize::on_yellow
], Read more