pub enum EventKind {
Show 57 variants
WorkflowStarted {
task_count: usize,
generation_id: String,
workflow_hash: String,
nika_version: String,
},
WorkflowCompleted {
final_output: Arc<Value>,
total_duration_ms: u64,
},
WorkflowFailed {
error: String,
failed_task: Option<Arc<str>>,
},
WorkflowAborted {
reason: String,
duration_ms: u64,
running_tasks: Vec<Arc<str>>,
},
WorkflowPaused,
WorkflowResumed,
TaskScheduled {
task_id: Arc<str>,
dependencies: Vec<Arc<str>>,
},
TaskStarted {
task_id: Arc<str>,
verb: Arc<str>,
inputs: Value,
},
TaskCompleted {
task_id: Arc<str>,
output: Arc<Value>,
duration_ms: u64,
},
TaskFailed {
task_id: Arc<str>,
error: String,
duration_ms: u64,
error_code: Option<String>,
},
TaskSkipped {
task_id: Arc<str>,
reason: String,
},
TemplateResolved {
task_id: Arc<str>,
template: String,
result: String,
},
ProviderCalled {
task_id: Arc<str>,
provider: String,
model: String,
prompt_len: usize,
},
ProviderResponded {
task_id: Arc<str>,
request_id: Option<String>,
input_tokens: u64,
output_tokens: u64,
cache_read_tokens: u64,
ttft_ms: Option<u64>,
finish_reason: String,
cost_usd: f64,
},
ContextAssembled {
task_id: Arc<str>,
sources: Vec<ContextSource>,
excluded: Vec<ExcludedItem>,
total_tokens: u64,
budget_used_pct: f32,
truncated: bool,
},
McpInvoke {
task_id: Arc<str>,
call_id: String,
mcp_server: String,
tool: Option<String>,
resource: Option<String>,
params: Option<Value>,
},
McpResponse {
task_id: Arc<str>,
call_id: String,
output_len: usize,
duration_ms: u64,
cached: bool,
is_error: bool,
response: Option<Value>,
},
McpConnected {
server_name: String,
},
McpError {
server_name: String,
error: String,
},
McpRetry {
task_id: Arc<str>,
server_name: String,
operation: String,
attempt: u32,
max_attempts: u32,
error: String,
},
AgentStart {
task_id: Arc<str>,
max_turns: u32,
mcp_servers: Vec<String>,
},
AgentTurn {
task_id: Arc<str>,
turn_index: u32,
kind: String,
metadata: Option<AgentTurnMetadata>,
},
AgentComplete {
task_id: Arc<str>,
turns: u32,
stop_reason: String,
},
AgentSpawned {
parent_task_id: Arc<str>,
child_task_id: Arc<str>,
depth: u32,
},
GuardrailPassed {
task_id: Arc<str>,
guardrail_type: String,
description: String,
},
GuardrailFailed {
task_id: Arc<str>,
guardrail_type: String,
description: String,
message: String,
},
GuardrailEscalation {
task_id: Arc<str>,
guardrail_type: String,
guardrail_id: String,
message: String,
severity: String,
suggested_action: Option<String>,
},
Log {
level: String,
message: String,
task_id: Option<Arc<str>>,
},
Custom {
name: String,
payload: Value,
task_id: Option<Arc<str>>,
},
ArtifactWritten {
task_id: Arc<str>,
path: String,
size: u64,
format: String,
checksum: Option<String>,
},
ArtifactFailed {
task_id: Arc<str>,
path: String,
reason: String,
},
MediaExtracted {
task_id: Arc<str>,
block_count: u32,
content_types: Vec<String>,
},
MediaProcessed {
task_id: Arc<str>,
hash: String,
mime_type: String,
size_bytes: u64,
},
MediaStored {
task_id: Arc<str>,
hash: String,
path: String,
size_bytes: u64,
verified: bool,
deduplicated: bool,
pipeline_ms: u64,
},
MediaStoreFailed {
task_id: Arc<str>,
hash: String,
reason: String,
},
MediaIntegrityCheck {
checked: u64,
warnings: u64,
},
StructuredOutputAttempt {
task_id: Arc<str>,
layer: u8,
layer_name: String,
attempt: u32,
success: bool,
error: Option<String>,
},
StructuredOutputSuccess {
task_id: Arc<str>,
layer: u8,
layer_name: String,
total_attempts: u32,
},
VisionContentResolved {
task_id: Arc<str>,
image_count: u32,
total_bytes: u64,
resolve_ms: u64,
},
HttpRequest {
task_id: Arc<str>,
method: String,
url: String,
has_body: bool,
},
HttpResponse {
task_id: Arc<str>,
status_code: u16,
content_type: Option<String>,
content_length: Option<u64>,
elapsed_ms: u64,
},
MediaCleanup {
removed: u64,
bytes_freed: u64,
dry_run: bool,
},
ExecCompleted {
task_id: Arc<str>,
exit_code: i32,
stdout_len: usize,
stderr_len: usize,
duration_ms: u64,
},
FetchRetry {
task_id: Arc<str>,
url: String,
attempt: u32,
max_attempts: u32,
status_code: Option<u16>,
backoff_ms: u64,
},
PolicyBlocked {
task_id: Arc<str>,
verb: String,
policy_type: String,
reason: String,
},
BootPhaseCompleted {
phase: String,
success: bool,
duration_ms: u64,
warnings: Vec<String>,
},
NativeModelLoaded {
model: String,
kind: String,
size_bytes: u64,
duration_ms: u64,
is_vision: bool,
},
BindingDefaultApplied {
task_id: Arc<str>,
alias: String,
path: String,
default_value: Value,
},
BindingTransformApplied {
task_id: Arc<str>,
alias: String,
transform_chain: String,
},
BindingEnvResolved {
task_id: Arc<str>,
var_name: String,
found: bool,
},
DecomposeStarted {
task_id: Arc<str>,
strategy: String,
},
DecomposeCompleted {
task_id: Arc<str>,
strategy: String,
item_count: usize,
duration_ms: u64,
},
ForEachStarted {
task_id: Arc<str>,
item_count: usize,
concurrency: usize,
fail_fast: bool,
},
ForEachCompleted {
task_id: Arc<str>,
total: u32,
succeeded: u32,
failed: u32,
skipped: u32,
duration_ms: u64,
},
ProviderInitialized {
provider: String,
model: String,
cached: bool,
},
BuiltinToolInvoked {
task_id: Arc<str>,
tool_name: String,
duration_ms: u64,
success: bool,
},
ExtractApplied {
task_id: Arc<str>,
mode: String,
selector: Option<String>,
input_len: usize,
output_len: usize,
},
}Expand description
All possible event types (3 levels)
Uses Arc<str> for task_id fields to enable zero-cost cloning.
Variants§
WorkflowStarted
Fields
WorkflowCompleted
WorkflowFailed
WorkflowAborted
Workflow was cancelled by user
Fields
WorkflowPaused
Workflow execution paused
WorkflowResumed
Workflow execution resumed
TaskScheduled
TaskStarted
Task execution begins with resolved inputs from with: block
Fields
TaskCompleted
TaskFailed
Fields
TaskSkipped
A task was skipped because a dependency failed.
TemplateResolved
ProviderCalled
ProviderResponded
Fields
ContextAssembled
Context assembly event for observability
Fields
sources: Vec<ContextSource>Sources included in context
excluded: Vec<ExcludedItem>Items excluded (with reasons)
McpInvoke
MCP tool call or resource read initiated
Fields
McpResponse
MCP operation completed
Fields
McpConnected
MCP server connection established
McpError
MCP server connection failed
McpRetry
MCP operation retry attempt
Emitted when MCP tool calls fail with connection errors and are retried.
Use McpClient::call_tool_with_retry_events() for observable retry tracking.
TUI handlers display this event with attempt count and error details.
Fields
AgentStart
Agent loop started
AgentTurn
Agent turn event with optional metadata
When metadata is present, it contains:
- Response text
- Token usage (input/output/cache)
- Stop reason
- Thinking content (if using streaming API)
Fields
metadata: Option<AgentTurnMetadata>Turn metadata including response text, tokens, thinking
AgentComplete
Agent loop completed (reached stop condition or max turns)
AgentSpawned
A sub-agent was spawned by a parent agent
Fields
GuardrailPassed
Guardrail check passed
Fields
GuardrailFailed
Guardrail check failed
Fields
GuardrailEscalation
Guardrail failure requires escalation
Emitted when a guardrail with on_failure: escalate fails.
This signals that human intervention or special handling is needed.
Fields
Log
Log event emitted by nika:log builtin tool
Fields
Custom
Custom event emitted by nika:emit builtin tool
Fields
ArtifactWritten
Artifact successfully written to disk
Fields
ArtifactFailed
Artifact write failed
Fields
MediaExtracted
Media content blocks extracted from MCP tool result
Fields
MediaProcessed
Single media block processed (decoded + detected)
Fields
MediaStored
Media file stored in CAS
Fields
MediaStoreFailed
Media storage failed
Fields
MediaIntegrityCheck
Media integrity check completed (emitted after all tasks finish)
Fields
StructuredOutputAttempt
Structured output extraction attempt at a specific layer
Emitted for each layer/retry attempt in the 4-layer defense system:
- Layer 1: rig Extractor (Rust types with JsonSchema)
- Layer 2: Extract + Validate (post-processing)
- Layer 3: Retry with Feedback
- Layer 4: LLM Repair
Fields
StructuredOutputSuccess
Structured output successfully extracted
Emitted when any layer successfully produces valid output
Fields
VisionContentResolved
Vision content parts resolved for multimodal inference.
Emitted when CAS image references in content: are resolved
to base64 data before sending to a vision-capable LLM.
Fields
HttpRequest
HTTP request initiated by fetch: verb
HttpResponse
HTTP response received by fetch: verb
Fields
MediaCleanup
Media store cleanup (GC) operation completed
Fields
ExecCompleted
Shell command execution completed with exit details
Fields
FetchRetry
Fetch retry attempt (mirrors McpRetry pattern)
Fields
PolicyBlocked
Security policy blocked an operation
Fields
BootPhaseCompleted
Boot phase completed (one per phase during startup)
Fields
NativeModelLoaded
Native (local) model loaded successfully
Fields
BindingDefaultApplied
Binding default value applied (via ?? operator)
Fields
BindingTransformApplied
Binding transform chain applied (e.g., |upper|trim|sort)
Fields
BindingEnvResolved
Environment variable resolved via $env.VAR_NAME binding
Fields
DecomposeStarted
Decompose modifier expansion started
DecomposeCompleted
Decompose modifier expansion completed
Fields
ForEachStarted
for_each iteration batch started
Fields
ForEachCompleted
for_each iteration batch completed with aggregated results
Fields
ProviderInitialized
Provider initialized (first use, cache miss)
Fields
BuiltinToolInvoked
Builtin tool invoked by agent (nika:read, nika:write, etc.)
Fields
ExtractApplied
Extraction mode applied to fetch response
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for EventKind
impl Serialize for EventKind
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,
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§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 moreSource§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 moreSource§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>
Source§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>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§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>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.