pub struct StateRoot(/* private fields */);Expand description
An instance’s state root: global settings, scenes, transcripts, plugins,
the daemon’s files. The names under it do not follow Layout.
Implementations§
Source§impl StateRoot
impl StateRoot
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn path(&self) -> &Path
pub fn into_path(self) -> PathBuf
pub fn settings_file(&self) -> PathBuf
pub fn settings_local_file(&self) -> PathBuf
pub fn scenes_dir(&self) -> PathBuf
pub fn scene_dir(&self, scene: &str) -> PathBuf
Sourcepub fn scheduled_tasks_file(&self, scene: &str) -> PathBuf
pub fn scheduled_tasks_file(&self, scene: &str) -> PathBuf
<scene dir>/scheduled_tasks.json.
pub fn plugins_dir(&self) -> PathBuf
pub fn plugin_cache_dir(&self) -> PathBuf
pub fn tmp_dir(&self) -> PathBuf
pub fn projects_dir(&self) -> PathBuf
pub fn sessions_dir(&self) -> PathBuf
pub fn recordings_dir(&self) -> PathBuf
pub fn daemon_dir(&self) -> PathBuf
pub fn instances_dir(&self) -> PathBuf
pub fn auth_dir(&self) -> PathBuf
pub fn groups_dir(&self) -> PathBuf
Sourcepub fn groups_file(&self, instance: &str) -> PathBuf
pub fn groups_file(&self, instance: &str) -> PathBuf
daemon/groups/<instance>.json.
pub fn crashes_dir(&self) -> PathBuf
Trait Implementations§
impl Eq for StateRoot
impl StructuralPartialEq for StateRoot
Auto Trait Implementations§
impl Forget for StateRoot
impl Freeze for StateRoot
impl Move for StateRoot
impl RefUnwindSafe for StateRoot
impl Send for StateRoot
impl Sync for StateRoot
impl Unpin for StateRoot
impl UnsafeUnpin for StateRoot
impl UnwindSafe for StateRoot
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