MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_parent_view

Method set_parent_view

atomic-agent/src/turn/session.rs:290–294  ·  view source on GitHub ↗

Set the parent view name (the view that was current when this session started). Only sets the value if it hasn't been set already (first call wins).

(&mut self, view: impl Into<String>)

Source from the content-addressed store, hash-verified

288 ///
289 /// Only sets the value if it hasn't been set already (first call wins).
290 pub fn set_parent_view(&mut self, view: impl Into<String>) {
291 if self.parent_view.is_none() {
292 self.parent_view = Some(view.into());
293 }
294 }
295
296 /// Get the parent view name, if set.
297 pub fn parent_view(&self) -> Option<&str> {

Calls 1

is_noneMethod · 0.80