Skip to main content

Module transcript

Module transcript 

Source

Re-exports§

pub use crate::utils::message_style::MessageStyle;

Functions§

append
clear
clear_inline_handle
Remove the inline handle
clear_queue
Clear the message queue (history and undisplayed pending).
clear_tracker_block
Clear remembered tracker replace state (tests / session teardown).
display_error
Display an error message in the transcript instead of the input field
display_immediate
Display a message immediately without enqueueing or adding to transcript
display_info
Display an info message in the transcript instead of the input field
drain_queued_messages
Atomically take every queued message FIFO and clear the history queue. Prefer this over get_queued_messages + clear_queue: the snapshot pattern races and callers that only use .last() drop all but the newest message.
drain_queued_messages_with_metadata
Atomically take every queued message with metadata FIFO and clear.
enqueue
Enqueue a message and display it immediately (defaults to Output/Pty style)
enqueue_message
Enqueue a message with a specific style and display it immediately
enqueue_message_with_kind
Enqueue a message with a specific kind and display it immediately
get_queued_messages
Get all queued messages as plain text
get_queued_messages_with_metadata
Get all queued messages with their metadata
last_line
Last non-empty transcript line, if any.
len
pending_queue_len
Get pending (undisplayed) queue length.
queue_len
Get queue length (history length).
remember_tracker_block
Remember the current user-facing tracker transcript block (UI length = line count).
remember_tracker_block_with_ui_len
Remember the current user-facing tracker transcript block.
replace_last
replay_queued_messages
Replay all queued messages to the current inline handle (useful for recovery)
set_inline_handle
Set the inline handle for immediate message display.
snapshot
tail_matches
tracker_block_len
Line count of the remembered tracker transcript block, if any.
tracker_block_len_if_at_tail
Length of the remembered tracker block only if it is still the transcript tail.
tracker_block_matches
Whether lines match the remembered tracker transcript block exactly.
tracker_ui_write_len
UI write length last recorded for the tracker block, if any.
with_suppressed