MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / show

Method show

crates/opencode-tui/src/components/toast.rs:48–54  ·  view source on GitHub ↗
(&mut self, variant: ToastVariant, message: &str, duration_ms: u64)

Source from the content-addressed store, hash-verified

46 }
47
48 pub fn show(&mut self, variant: ToastVariant, message: &str, duration_ms: u64) {
49 self.variant = variant;
50 self.message = Some(message.to_string());
51 self.duration_ms = duration_ms;
52 self.phase = ToastPhase::Entering;
53 self.phase_elapsed_ms = 0;
54 }
55
56 pub fn tick(&mut self, delta_ms: u64) -> bool {
57 if self.message.is_none() {

Calls

no outgoing calls