pub struct RuntimeOptions<'a> {
pub asset_path: &'a str,
pub cache_path: &'a str,
}Expand description
Options for RuntimeHandle::create().
See mln_runtime_options in the
C API reference.
Fields§
§asset_path: &'a strThe directory that asset:// URLs load from. Empty uses the working
directory, or the app’s assets on Android.
cache_path: &'a strThe path of the cache database file, which holds the ambient cache and offline regions. Its directory must be writable. Empty keeps the cache in memory.
Trait Implementations§
Source§impl<'a> Clone for RuntimeOptions<'a>
impl<'a> Clone for RuntimeOptions<'a>
Source§fn clone(&self) -> RuntimeOptions<'a>
fn clone(&self) -> RuntimeOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RuntimeOptions<'a>
impl<'a> Debug for RuntimeOptions<'a>
Source§impl<'a> Default for RuntimeOptions<'a>
impl<'a> Default for RuntimeOptions<'a>
Source§fn default() -> RuntimeOptions<'a>
fn default() -> RuntimeOptions<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for RuntimeOptions<'a>
impl<'a> PartialEq for RuntimeOptions<'a>
impl<'a> StructuralPartialEq for RuntimeOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for RuntimeOptions<'a>
impl<'a> RefUnwindSafe for RuntimeOptions<'a>
impl<'a> Send for RuntimeOptions<'a>
impl<'a> Sync for RuntimeOptions<'a>
impl<'a> Unpin for RuntimeOptions<'a>
impl<'a> UnsafeUnpin for RuntimeOptions<'a>
impl<'a> UnwindSafe for RuntimeOptions<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more