pub enum Source<'a> {
File(PathBuf),
Oci(&'a [WasmLayer]),
}
Expand description
The source for a WASI module / components.
Variants§
File(PathBuf)
The WASI module is a file in the file system.
Oci(&'a [WasmLayer])
The WASI module / component is provided as a layer in the OCI spec.
For a WASI preview 1 module this is usually a single element array.
For a WASI preview 2 component this is an array of one or more
elements, where each element is a component.
Runtimes can additionally provide a list of layer types they support,
and they will be included in this array, e.g., a toml
file with the
runtime configuration.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Source<'a>
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'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> 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> IntoOption for T
impl<T> IntoOption for T
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request