pub enum KeyFileNames {
StateRoot,
Project,
}Expand description
Which names a key file has, by the directory it is in.
Variants§
StateRoot
The state root and the scene directories: the settings files, whose provider keys and MCP headers are plain text.
Project
A project directory (and a foreign .agix): the files the engine writes the project’s keys to.
Implementations§
Source§impl KeyFileNames
impl KeyFileNames
pub fn stems(self) -> &'static [&'static str]
Sourcepub fn admits(self, name: &str) -> bool
pub fn admits(self, name: &str) -> bool
Whether a file of this name is a key file: its name, less a leading
., starts with one of the Self::stems — which covers the
temporary files the engine writes through — and, in the state root,
has .json in it.
Trait Implementations§
Source§impl Clone for KeyFileNames
impl Clone for KeyFileNames
impl Copy for KeyFileNames
Source§impl Debug for KeyFileNames
impl Debug for KeyFileNames
impl Eq for KeyFileNames
Source§impl PartialEq for KeyFileNames
impl PartialEq for KeyFileNames
impl StructuralPartialEq for KeyFileNames
Auto Trait Implementations§
impl Forget for KeyFileNames
impl Freeze for KeyFileNames
impl Move for KeyFileNames
impl RefUnwindSafe for KeyFileNames
impl Send for KeyFileNames
impl Sync for KeyFileNames
impl Unpin for KeyFileNames
impl UnsafeUnpin for KeyFileNames
impl UnwindSafe for KeyFileNames
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