pub struct Layout { /* private fields */ }Expand description
The paths of one SCV instance.
Implementations§
Source§impl Layout
impl Layout
pub fn new(home: impl Into<PathBuf>) -> Self
pub fn home(&self) -> &Path
Sourcepub fn credentials(&self) -> PathBuf
pub fn credentials(&self) -> PathBuf
Sign-ins SCV writes itself.
Sourcepub fn channel_credentials(&self, channel: &str) -> PathBuf
pub fn channel_credentials(&self, channel: &str) -> PathBuf
One channel’s account credentials, <account>.json each.
pub fn agent_home(&self, agent: &str) -> PathBuf
pub fn skills(&self) -> PathBuf
pub fn socket(&self) -> PathBuf
Sourcepub fn delegations(&self) -> PathBuf
pub fn delegations(&self) -> PathBuf
Records of running delegated agents.
Sourcepub fn conversations(&self) -> PathBuf
pub fn conversations(&self) -> PathBuf
Markers of live delegated conversations, for scv agents gc.
Sourcepub fn channel_state(&self, channel: &str) -> PathBuf
pub fn channel_state(&self, channel: &str) -> PathBuf
One channel’s delivery state and account locks.
Sourcepub fn media(&self) -> PathBuf
pub fn media(&self) -> PathBuf
Files chat users sent, under <channel>/<account>, and copies of files
the model sends back, under outbox.
Sourcepub fn config_lock(&self) -> PathBuf
pub fn config_lock(&self) -> PathBuf
Serializes SCV’s own edits of config.toml.
Trait Implementations§
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more