pub enum AsyncIncludeLoaderOptions {
Noop,
Memory(MemoryIncludeLoaderOptions),
Reqwest(ReqwestIncludeLoaderOptions),
}Variants§
Implementations§
source§impl AsyncIncludeLoaderOptions
impl AsyncIncludeLoaderOptions
pub fn build_async(self) -> Box<dyn AsyncIncludeLoader + Send + Sync + 'static>
Trait Implementations§
source§impl Clone for AsyncIncludeLoaderOptions
impl Clone for AsyncIncludeLoaderOptions
source§fn clone(&self) -> AsyncIncludeLoaderOptions
fn clone(&self) -> AsyncIncludeLoaderOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AsyncIncludeLoaderOptions
impl Debug for AsyncIncludeLoaderOptions
source§impl Default for AsyncIncludeLoaderOptions
impl Default for AsyncIncludeLoaderOptions
source§impl<'de> Deserialize<'de> for AsyncIncludeLoaderOptions
impl<'de> Deserialize<'de> for AsyncIncludeLoaderOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl FromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
source§impl IntoWasmAbi for AsyncIncludeLoaderOptionswhere
Self: Serialize,
impl IntoWasmAbi for AsyncIncludeLoaderOptionswhere
Self: Serialize,
source§impl OptionFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
source§impl OptionIntoWasmAbi for AsyncIncludeLoaderOptionswhere
Self: Serialize,
impl OptionIntoWasmAbi for AsyncIncludeLoaderOptionswhere
Self: Serialize,
source§impl Tsify for AsyncIncludeLoaderOptions
impl Tsify for AsyncIncludeLoaderOptions
type JsType = JsType
const DECL: &'static str = "export type AsyncIncludeLoaderOptions = { type: \"noop\" } | ({ type: \"memory\" } & MemoryIncludeLoaderOptions) | ({ type: \"reqwest\" } & ReqwestIncludeLoaderOptions);"
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl RefUnwindSafe for AsyncIncludeLoaderOptions
impl Send for AsyncIncludeLoaderOptions
impl Sync for AsyncIncludeLoaderOptions
impl Unpin for AsyncIncludeLoaderOptions
impl UnwindSafe for AsyncIncludeLoaderOptions
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.