pub enum Event {
Log(LogEvent),
Metric(Metric),
Trace(TraceEvent),
}
Variants§
Implementations§
source§impl Event
impl Event
sourcepub fn as_log(&self) -> &LogEvent
pub fn as_log(&self) -> &LogEvent
Return self as a LogEvent
§Panics
This function panics if self is anything other than an Event::Log
.
sourcepub fn as_mut_log(&mut self) -> &mut LogEvent
pub fn as_mut_log(&mut self) -> &mut LogEvent
Return self as a mutable LogEvent
§Panics
This function panics if self is anything other than an Event::Log
.
sourcepub fn into_log(self) -> LogEvent
pub fn into_log(self) -> LogEvent
Coerces self into a LogEvent
§Panics
This function panics if self is anything other than an Event::Log
.
sourcepub fn try_into_log(self) -> Option<LogEvent>
pub fn try_into_log(self) -> Option<LogEvent>
Fallibly coerces self into a LogEvent
If the event is a LogEvent
, then Some(log_event)
is returned, otherwise None
.
sourcepub fn maybe_as_log(&self) -> Option<&LogEvent>
pub fn maybe_as_log(&self) -> Option<&LogEvent>
Return self as a LogEvent
if possible
If the event is a LogEvent
, then Some(&log_event)
is returned, otherwise None
.
sourcepub fn as_metric(&self) -> &Metric
pub fn as_metric(&self) -> &Metric
Return self as a Metric
§Panics
This function panics if self is anything other than an Event::Metric
.
sourcepub fn as_mut_metric(&mut self) -> &mut Metric
pub fn as_mut_metric(&mut self) -> &mut Metric
Return self as a mutable Metric
§Panics
This function panics if self is anything other than an Event::Metric
.
sourcepub fn into_metric(self) -> Metric
pub fn into_metric(self) -> Metric
Coerces self into Metric
§Panics
This function panics if self is anything other than an Event::Metric
.
sourcepub fn try_into_metric(self) -> Option<Metric>
pub fn try_into_metric(self) -> Option<Metric>
Fallibly coerces self into a Metric
If the event is a Metric
, then Some(metric)
is returned, otherwise None
.
sourcepub fn as_trace(&self) -> &TraceEvent
pub fn as_trace(&self) -> &TraceEvent
Return self as a TraceEvent
§Panics
This function panics if self is anything other than an Event::Trace
.
sourcepub fn as_mut_trace(&mut self) -> &mut TraceEvent
pub fn as_mut_trace(&mut self) -> &mut TraceEvent
Return self as a mutable TraceEvent
§Panics
This function panics if self is anything other than an Event::Trace
.
sourcepub fn into_trace(self) -> TraceEvent
pub fn into_trace(self) -> TraceEvent
Coerces self into a TraceEvent
§Panics
This function panics if self is anything other than an Event::Trace
.
sourcepub fn try_into_trace(self) -> Option<TraceEvent>
pub fn try_into_trace(self) -> Option<TraceEvent>
Fallibly coerces self into a TraceEvent
If the event is a TraceEvent
, then Some(trace)
is returned, otherwise None
.
pub fn metadata(&self) -> &EventMetadata
pub fn metadata_mut(&mut self) -> &mut EventMetadata
sourcepub fn into_metadata(self) -> EventMetadata
pub fn into_metadata(self) -> EventMetadata
Destroy the event and return the metadata.
pub fn with_batch_notifier(self, batch: &BatchNotifier) -> Event
pub fn with_batch_notifier_option(self, batch: &Option<BatchNotifier>) -> Event
sourcepub fn source_id(&self) -> Option<&Arc<ComponentKey>>
pub fn source_id(&self) -> Option<&Arc<ComponentKey>>
Returns a reference to the event metadata source.
sourcepub fn set_source_id(&mut self, source_id: Arc<ComponentKey>)
pub fn set_source_id(&mut self, source_id: Arc<ComponentKey>)
Sets the source_id
in the event metadata to the provided value.
sourcepub fn set_upstream_id(&mut self, upstream_id: Arc<OutputId>)
pub fn set_upstream_id(&mut self, upstream_id: Arc<OutputId>)
Sets the upstream_id
in the event metadata to the provided value.
sourcepub fn set_source_type(&mut self, source_type: &'static str)
pub fn set_source_type(&mut self, source_type: &'static str)
Sets the source_type
in the event metadata to the provided value.
sourcepub fn with_source_id(self, source_id: Arc<ComponentKey>) -> Event
pub fn with_source_id(self, source_id: Arc<ComponentKey>) -> Event
Sets the source_id
in the event metadata to the provided value.
sourcepub fn with_source_type(self, source_type: &'static str) -> Event
pub fn with_source_type(self, source_type: &'static str) -> Event
Sets the source_type
in the event metadata to the provided value.
sourcepub fn with_upstream_id(self, upstream_id: Arc<OutputId>) -> Event
pub fn with_upstream_id(self, upstream_id: Arc<OutputId>) -> Event
Sets the upstream_id
in the event metadata to the provided value.
Trait Implementations§
source§impl AddBatchNotifier for Event
impl AddBatchNotifier for Event
source§fn add_batch_notifier(&mut self, batch: BatchNotifier)
fn add_batch_notifier(&mut self, batch: BatchNotifier)
source§impl ByteSizeOf for Event
impl ByteSizeOf for Event
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Encoder<Event> for (Transformer, Encoder<()>)
impl Encoder<Event> for (Transformer, Encoder<()>)
source§fn encode_input(
&self,
event: Event,
writer: &mut dyn Write
) -> Result<(usize, GroupedCountByteSize)>
fn encode_input( &self, event: Event, writer: &mut dyn Write ) -> Result<(usize, GroupedCountByteSize)>
source§impl EstimatedJsonEncodedSizeOf for Event
impl EstimatedJsonEncodedSizeOf for Event
fn estimated_json_encoded_size_of(&self) -> JsonSize
source§impl EventContainer for Event
impl EventContainer for Event
source§fn into_events(self) -> <Event as EventContainer>::IntoIter
fn into_events(self) -> <Event as EventContainer>::IntoIter
Event
.source§impl EventCount for Event
impl EventCount for Event
fn event_count(&self) -> usize
source§impl<'a> EventDataEq<Event> for EventRef<'a>
impl<'a> EventDataEq<Event> for EventRef<'a>
fn event_data_eq(&self, that: &Event) -> bool
source§impl EventDataEq for Event
impl EventDataEq for Event
fn event_data_eq(&self, other: &Event) -> bool
source§impl Finalizable for Event
impl Finalizable for Event
source§fn take_finalizers(&mut self) -> EventFinalizers
fn take_finalizers(&mut self) -> EventFinalizers
source§impl<'a> From<&'a mut Event> for EventMutRef<'a>
impl<'a> From<&'a mut Event> for EventMutRef<'a>
source§fn from(event: &'a mut Event) -> EventMutRef<'a>
fn from(event: &'a mut Event) -> EventMutRef<'a>
source§impl From<Event> for EventArray
impl From<Event> for EventArray
source§fn from(event: Event) -> EventArray
fn from(event: Event) -> EventArray
source§impl From<Event> for EventWrapper
impl From<Event> for EventWrapper
source§fn from(event: Event) -> EventWrapper
fn from(event: Event) -> EventWrapper
source§impl From<Event> for WithMetadata<EventWrapper>
impl From<Event> for WithMetadata<EventWrapper>
source§fn from(event: Event) -> WithMetadata<EventWrapper>
fn from(event: Event) -> WithMetadata<EventWrapper>
source§impl From<EventWrapper> for Event
impl From<EventWrapper> for Event
source§fn from(proto: EventWrapper) -> Event
fn from(proto: EventWrapper) -> Event
source§impl From<TraceEvent> for Event
impl From<TraceEvent> for Event
source§fn from(trace: TraceEvent) -> Event
fn from(trace: TraceEvent) -> Event
source§impl GetEventCountTags for Event
impl GetEventCountTags for Event
source§impl ItemBatchSize<Event> for HttpJsonBatchSizer
impl ItemBatchSize<Event> for HttpJsonBatchSizer
source§impl MaybeAsLogMut for Event
impl MaybeAsLogMut for Event
fn maybe_as_log_mut(&mut self) -> Option<&mut LogEvent>
source§impl PartialEq for Event
impl PartialEq for Event
source§impl RequestBuilder<Event> for DatadogEventsRequestBuilder
impl RequestBuilder<Event> for DatadogEventsRequestBuilder
type Metadata = Metadata
type Events = Event
type Encoder = (Transformer, Encoder<()>)
type Payload = Bytes
type Request = DatadogEventsRequest
type Error = Error
source§fn compression(&self) -> Compression
fn compression(&self) -> Compression
source§fn split_input(
&self,
event: Event
) -> (Self::Metadata, RequestMetadataBuilder, Self::Events)
fn split_input( &self, event: Event ) -> (Self::Metadata, RequestMetadataBuilder, Self::Events)
source§fn build_request(
&self,
metadata: Self::Metadata,
request_metadata: RequestMetadata,
payload: EncodeResult<Self::Payload>
) -> Self::Request
fn build_request( &self, metadata: Self::Metadata, request_metadata: RequestMetadata, payload: EncodeResult<Self::Payload> ) -> Self::Request
fn encode_events( &self, events: Self::Events ) -> Result<EncodeResult<Self::Payload>, Self::Error>
source§impl Serialize for Event
impl Serialize for Event
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<T, B, RL> Sink<Event> for BatchedHttpSink<T, B, RL>
impl<T, B, RL> Sink<Event> for BatchedHttpSink<T, B, RL>
§type Error = Box<dyn Error + Sync + Send>
type Error = Box<dyn Error + Sync + Send>
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Sink
to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, event: Event) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, event: Event) -> Result<(), Self::Error>
poll_ready
which returned Poll::Ready(Ok(()))
. Read moresource§impl<T, B, K, RL> Sink<Event> for PartitionHttpSink<T, B, K, RL>
impl<T, B, K, RL> Sink<Event> for PartitionHttpSink<T, B, K, RL>
§type Error = Box<dyn Error + Sync + Send>
type Error = Box<dyn Error + Sync + Send>
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Sink
to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, event: Event) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, event: Event) -> Result<(), Self::Error>
poll_ready
which returned Poll::Ready(Ok(()))
. Read moresource§impl<Svc, RB> StreamSink<Event> for AzureBlobSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(String, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
impl<Svc, RB> StreamSink<Event> for AzureBlobSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(String, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
source§impl<Svc, RB> StreamSink<Event> for ChronicleSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(ChroniclePartitionKey, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
impl<Svc, RB> StreamSink<Event> for ChronicleSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(ChroniclePartitionKey, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
source§impl<S> StreamSink<Event> for DatadogEventsSink<S>
impl<S> StreamSink<Event> for DatadogEventsSink<S>
source§impl<S> StreamSink<Event> for ElasticsearchSink<S>
impl<S> StreamSink<Event> for ElasticsearchSink<S>
source§impl StreamSink<Event> for FileSink
impl StreamSink<Event> for FileSink
source§impl<Svc, RB> StreamSink<Event> for GcsSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(String, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
impl<Svc, RB> StreamSink<Event> for GcsSink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(String, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
source§impl<S, R> StreamSink<Event> for KinesisSink<S, R>
impl<S, R> StreamSink<Event> for KinesisSink<S, R>
source§impl<S> StreamSink<Event> for LogSink<S>
impl<S> StreamSink<Event> for LogSink<S>
source§impl<Svc> StreamSink<Event> for OpenDalSink<Svc>
impl<Svc> StreamSink<Event> for OpenDalSink<Svc>
source§impl<Svc, RB> StreamSink<Event> for S3Sink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(S3PartitionKey, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
impl<Svc, RB> StreamSink<Event> for S3Sink<Svc, RB>where
Svc: Service<RB::Request> + Send + 'static,
Svc::Future: Send + 'static,
Svc::Response: DriverResponse + Send + 'static,
Svc::Error: Debug + Into<Error> + Send,
RB: RequestBuilder<(S3PartitionKey, Vec<Event>)> + Send + Sync + 'static,
RB::Error: Display + Send,
RB::Request: Finalizable + MetaDescriptive + Send,
source§impl TaskTransform<Event> for Aggregate
impl TaskTransform<Event> for Aggregate
fn transform(
self: Box<Self>,
input_rx: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl TaskTransform<Event> for Dedupe
impl TaskTransform<Event> for Dedupe
fn transform(
self: Box<Self>,
task: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl TaskTransform<Event> for Ec2MetadataTransform
impl TaskTransform<Event> for Ec2MetadataTransform
fn transform(
self: Box<Self>,
task: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl TaskTransform<Event> for Lua
impl TaskTransform<Event> for Lua
fn transform(
self: Box<Self>,
task: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl TaskTransform<Event> for Reduce
impl TaskTransform<Event> for Reduce
fn transform(
self: Box<Self>,
input_rx: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl TaskTransform<Event> for TagCardinalityLimit
impl TaskTransform<Event> for TagCardinalityLimit
fn transform(
self: Box<Self>,
task: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
source§impl<C, I> TaskTransform<Event> for Throttle<C, I>
impl<C, I> TaskTransform<Event> for Throttle<C, I>
fn transform(
self: Box<Self>,
input_rx: Pin<Box<dyn Stream<Item = Event> + Send>>
) -> Pin<Box<dyn Stream<Item = Event> + Send>>where
Self: 'static,
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl !Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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
§impl<T> Conv for T
impl<T> Conv for T
§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> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, 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> ⓘ
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> 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>
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_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, 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§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize(&self, serializer: &mut dyn Serializer)
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.