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§fn default() -> AsyncIncludeLoaderOptions
fn default() -> AsyncIncludeLoaderOptions
Returns the “default value” for a type. Read more
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 From<AsyncIncludeLoaderOptions> for JsValuewhere
AsyncIncludeLoaderOptions: Serialize,
impl From<AsyncIncludeLoaderOptions> for JsValuewhere
AsyncIncludeLoaderOptions: Serialize,
Source§fn from(value: AsyncIncludeLoaderOptions) -> Self
fn from(value: AsyncIncludeLoaderOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl FromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
impl IntoWasmAbi for &AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
Source§impl OptionFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
impl OptionIntoWasmAbi for AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
Source§impl RefFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl RefFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<AsyncIncludeLoaderOptions>
type Anchor = SelfOwner<AsyncIncludeLoaderOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Tsify for AsyncIncludeLoaderOptions
impl Tsify for AsyncIncludeLoaderOptions
const DECL: &'static str = "export type AsyncIncludeLoaderOptions = { type: \"noop\" } | ({ type: \"memory\" } & MemoryIncludeLoaderOptions) | ({ type: \"reqwest\" } & ReqwestIncludeLoaderOptions);"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for AsyncIncludeLoaderOptionswhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
impl VectorIntoWasmAbi for AsyncIncludeLoaderOptionswhere
AsyncIncludeLoaderOptions: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for AsyncIncludeLoaderOptions
impl WasmDescribeVector for AsyncIncludeLoaderOptions
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::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.