MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_duration

Method with_duration

crates/opencode-tui/src/components/thinking.rs:30–33  ·  view source on GitHub ↗
(mut self, ms: u64)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn with_duration(mut self, ms: u64) -> Self {
31 self.duration_ms = Some(ms);
32 self
33 }
34
35 pub fn toggle(&mut self) {
36 self.collapsed = !self.collapsed;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected