Struct RuntimeOptions
#[non_exhaustive]pub struct RuntimeOptions {
pub asset_path: Option<String>,
pub cache_path: Option<String>,
pub maximum_cache_size: Option<u64>,
}Expand description
Options used when creating a runtime.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.asset_path: Option<String>Filesystem root for asset:// URLs.
cache_path: Option<String>Cache database path.
maximum_cache_size: Option<u64>Maximum ambient cache size in bytes.
Implementations§
§impl RuntimeOptions
impl RuntimeOptions
pub fn new() -> RuntimeOptions
pub fn with_asset_path(self, asset_path: impl Into<String>) -> RuntimeOptions
pub fn with_cache_path(self, cache_path: impl Into<String>) -> RuntimeOptions
pub fn with_maximum_cache_size(self, maximum_cache_size: u64) -> RuntimeOptions
pub fn clear_asset_path(self) -> RuntimeOptions
pub fn clear_cache_path(self) -> RuntimeOptions
pub fn clear_maximum_cache_size(self) -> RuntimeOptions
Trait Implementations§
§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RuntimeOptions
impl Debug for RuntimeOptions
§impl Default for RuntimeOptions
impl Default for RuntimeOptions
§fn default() -> RuntimeOptions
fn default() -> RuntimeOptions
Returns the “default value” for a type. Read more
§impl PartialEq for RuntimeOptions
impl PartialEq for RuntimeOptions
impl Eq for RuntimeOptions
impl StructuralPartialEq for RuntimeOptions
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
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