pub enum BlobSource<'a> {
Directory(&'a Path),
File(&'a Path),
}Expand description
Where a shipped app’s compiled world sits. Both forms make the same file blob 0; they differ in whether the world is allowed to spill into overflow payload blobs, which are always siblings named by index.
Variants§
Directory(&'a Path)
A directory holding blob 0 plus any overflow blobs beside it.
File(&'a Path)
A single self-contained blob file. A world that needs overflow blobs is refused rather than half-loaded, since its siblings would be written into whatever directory the file happens to sit in.
Trait Implementations§
Source§impl<'a> Clone for BlobSource<'a>
impl<'a> Clone for BlobSource<'a>
Source§fn clone(&self) -> BlobSource<'a>
fn clone(&self) -> BlobSource<'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 moreimpl<'a> Copy for BlobSource<'a>
Source§impl<'a> Debug for BlobSource<'a>
impl<'a> Debug for BlobSource<'a>
impl<'a> Eq for BlobSource<'a>
Source§impl<'a> PartialEq for BlobSource<'a>
impl<'a> PartialEq for BlobSource<'a>
impl<'a> StructuralPartialEq for BlobSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlobSource<'a>
impl<'a> RefUnwindSafe for BlobSource<'a>
impl<'a> Send for BlobSource<'a>
impl<'a> Sync for BlobSource<'a>
impl<'a> Unpin for BlobSource<'a>
impl<'a> UnsafeUnpin for BlobSource<'a>
impl<'a> UnwindSafe for BlobSource<'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
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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