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 duplicate 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
const DECL: &'static str = "export type AsyncIncludeLoaderOptions = { type: \"noop\" } | ({ type: \"memory\" } & MemoryIncludeLoaderOptions) | ({ type: \"reqwest\" } & ReqwestIncludeLoaderOptions);"
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for AsyncIncludeLoaderOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§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
.