Enum lumina_node_wasm::node::NodeWorkerKind
source · pub enum NodeWorkerKind {
Shared,
Dedicated,
}
Expand description
Type of worker to run lumina in. Allows overriding automatically detected worker kind (which should usually be appropriate).
Variants§
Trait Implementations§
source§impl From<NodeWorkerKind> for JsValue
impl From<NodeWorkerKind> for JsValue
source§fn from(value: NodeWorkerKind) -> Self
fn from(value: NodeWorkerKind) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for NodeWorkerKind
impl FromWasmAbi for NodeWorkerKind
source§impl IntoWasmAbi for NodeWorkerKind
impl IntoWasmAbi for NodeWorkerKind
source§impl OptionFromWasmAbi for NodeWorkerKind
impl OptionFromWasmAbi for NodeWorkerKind
source§impl OptionIntoWasmAbi for NodeWorkerKind
impl OptionIntoWasmAbi for NodeWorkerKind
source§impl TryFromJsValue for NodeWorkerKind
impl TryFromJsValue for NodeWorkerKind
source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <NodeWorkerKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <NodeWorkerKind as TryFromJsValue>::Error>
Performs the conversion.
source§impl VectorFromWasmAbi for NodeWorkerKind
impl VectorFromWasmAbi for NodeWorkerKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[NodeWorkerKind]>
source§impl VectorIntoJsValue for NodeWorkerKind
impl VectorIntoJsValue for NodeWorkerKind
fn vector_into_jsvalue(vector: Box<[NodeWorkerKind]>) -> JsValue
source§impl VectorIntoWasmAbi for NodeWorkerKind
impl VectorIntoWasmAbi for NodeWorkerKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[NodeWorkerKind]>) -> Self::Abi
source§impl WasmDescribeVector for NodeWorkerKind
impl WasmDescribeVector for NodeWorkerKind
Auto Trait Implementations§
impl Freeze for NodeWorkerKind
impl RefUnwindSafe for NodeWorkerKind
impl Send for NodeWorkerKind
impl Sync for NodeWorkerKind
impl Unpin for NodeWorkerKind
impl UnwindSafe for NodeWorkerKind
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> 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 moresource§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::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
.