pub struct MobKitRealmOpenContext {
pub layout: MobKitStorageLayout,
pub state_dir: PathBuf,
pub declared_ephemeral_domains: Vec<String>,
}Expand description
Everything a provider needs to open a realm’s MobKit stores.
Fields§
§layout: MobKitStorageLayoutThe path authority for the realm’s state directory (canonical-name- first probing; disk providers derive every file location from it).
state_dir: PathBufThe realm’s state directory root (layout.state_dir(), owned).
declared_ephemeral_domains: Vec<String>Durable-class domains the embedder explicitly declared ephemeral
("blobs", "runtime", …). A durable slot resolving non-persistent
without its domain listed here fails composition.
Implementations§
Source§impl MobKitRealmOpenContext
impl MobKitRealmOpenContext
Sourcepub fn for_state_dir(state_dir: impl Into<PathBuf>) -> Self
pub fn for_state_dir(state_dir: impl Into<PathBuf>) -> Self
Context over a state directory with no ephemeral declarations.
Sourcepub fn is_declared_ephemeral(&self, domain: &str) -> bool
pub fn is_declared_ephemeral(&self, domain: &str) -> bool
Whether domain was explicitly declared ephemeral.
Trait Implementations§
Source§impl Clone for MobKitRealmOpenContext
impl Clone for MobKitRealmOpenContext
Source§fn clone(&self) -> MobKitRealmOpenContext
fn clone(&self) -> MobKitRealmOpenContext
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 moreAuto Trait Implementations§
impl Freeze for MobKitRealmOpenContext
impl RefUnwindSafe for MobKitRealmOpenContext
impl Send for MobKitRealmOpenContext
impl Sync for MobKitRealmOpenContext
impl Unpin for MobKitRealmOpenContext
impl UnsafeUnpin for MobKitRealmOpenContext
impl UnwindSafe for MobKitRealmOpenContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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