pub enum ResourceSource {
Pinned(PinnedResource),
Supplied(SuppliedSlot),
}Expand description
Where a resource’s bytes come from.
Variants§
Pinned(PinnedResource)
A file the manifest pins by URL, SHA-256 and length.
Supplied(SuppliedSlot)
A file or directory the caller names when it loads the plugin.
Trait Implementations§
Source§impl Clone for ResourceSource
impl Clone for ResourceSource
Source§impl Debug for ResourceSource
impl Debug for ResourceSource
Source§impl PartialEq for ResourceSource
impl PartialEq for ResourceSource
impl StructuralPartialEq for ResourceSource
Auto Trait Implementations§
impl Forget for ResourceSource
impl Freeze for ResourceSource
impl Move for ResourceSource
impl RefUnwindSafe for ResourceSource
impl Send for ResourceSourcewhere
RawVecInner: Send,
impl Sync for ResourceSourcewhere
RawVecInner: Sync,
impl Unpin for ResourceSource
impl UnsafeUnpin for ResourceSourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ResourceSourcewhere
RawVecInner: UnwindSafe,
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,
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