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

Method set_parent_view

atomic-agent/src/turn/session.rs:415–419  ·  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

413 ///
414 /// Only sets the value if it hasn't been set already (first call wins).
415 pub fn set_parent_view(&mut self, view: impl Into<String>) {
416 if self.parent_view.is_none() {
417 self.parent_view = Some(view.into());
418 }
419 }
420
421 /// Get the parent view name, if set.
422 pub fn parent_view(&self) -> Option<&str> {

Calls 1

is_noneMethod · 0.80