pub struct Silo { /* private fields */ }
Expand description
Represents a root directory, which may be embedded or dynamic.
Implementations§
Source§impl Silo
impl Silo
Sourcepub fn into_dynamic(self) -> Self
pub fn into_dynamic(self) -> Self
Converts the Silo to a dynamic Silo if it is currently embedded.
Returns self
unchanged if the Silo is already dynamic or static.
Sourcepub fn auto_dynamic(self) -> Self
pub fn auto_dynamic(self) -> Self
Automatically converts the Silo to a dynamic directory in debug mode (cfg!(debug_assertions)
).
In release mode, returns self
unchanged.
This is a no-op if the Silo is not embedded.
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
Returns true
if this Silo is dynamic (filesystem-backed).
Sourcepub fn is_embedded(&self) -> bool
pub fn is_embedded(&self) -> bool
Returns true
if this Silo is embedded in the binary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Silo
impl RefUnwindSafe for Silo
impl Send for Silo
impl Sync for Silo
impl Unpin for Silo
impl UnwindSafe for Silo
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