pub struct RouterConfig { /* private fields */ }Expand description
Router configuration for WASM
Implementations§
Source§impl RouterConfig
impl RouterConfig
pub fn new() -> Self
pub fn set_model_path(&mut self, path: String)
pub fn set_confidence_threshold(&mut self, threshold: f32)
pub fn set_max_uncertainty(&mut self, uncertainty: f32)
Trait Implementations§
Source§impl Clone for RouterConfig
impl Clone for RouterConfig
Source§fn clone(&self) -> RouterConfig
fn clone(&self) -> RouterConfig
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 From<RouterConfig> for JsValue
impl From<RouterConfig> for JsValue
Source§fn from(value: RouterConfig) -> Self
fn from(value: RouterConfig) -> Self
Converts to this type from the input type.
Source§impl From<RouterConfig> for RouterConfig
impl From<RouterConfig> for RouterConfig
Source§fn from(config: RouterConfig) -> Self
fn from(config: RouterConfig) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RouterConfig
impl FromWasmAbi for RouterConfig
Source§impl IntoWasmAbi for RouterConfig
impl IntoWasmAbi for RouterConfig
Source§impl LongRefFromWasmAbi for RouterConfig
impl LongRefFromWasmAbi for RouterConfig
Source§impl OptionFromWasmAbi for RouterConfig
impl OptionFromWasmAbi for RouterConfig
Source§impl OptionIntoWasmAbi for RouterConfig
impl OptionIntoWasmAbi for RouterConfig
Source§impl RefFromWasmAbi for RouterConfig
impl RefFromWasmAbi for RouterConfig
Source§type Anchor = RcRef<RouterConfig>
type Anchor = RcRef<RouterConfig>
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 RefMutFromWasmAbi for RouterConfig
impl RefMutFromWasmAbi for RouterConfig
Source§impl TryFromJsValue for RouterConfig
impl TryFromJsValue for RouterConfig
Source§impl VectorFromWasmAbi for RouterConfig
impl VectorFromWasmAbi for RouterConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RouterConfig]>
Source§impl VectorIntoWasmAbi for RouterConfig
impl VectorIntoWasmAbi for RouterConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RouterConfig]>) -> Self::Abi
Source§impl WasmDescribeVector for RouterConfig
impl WasmDescribeVector for RouterConfig
impl SupportsConstructor for RouterConfig
impl SupportsInstanceProperty for RouterConfig
impl SupportsStaticProperty for RouterConfig
Auto Trait Implementations§
impl Freeze for RouterConfig
impl RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnwindSafe for RouterConfig
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> 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.