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

Method set_parent_view

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

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

Calls 1

is_noneMethod · 0.80