pub struct RoutingResponse { /* private fields */ }Expand description
Routing response
Implementations§
Source§impl RoutingResponse
impl RoutingResponse
pub fn decisions_json(&self) -> String
pub fn inference_time_us(&self) -> u64
pub fn candidates_processed(&self) -> usize
pub fn feature_time_us(&self) -> u64
Trait Implementations§
Source§impl From<RoutingResponse> for JsValue
impl From<RoutingResponse> for JsValue
Source§fn from(value: RoutingResponse) -> Self
fn from(value: RoutingResponse) -> Self
Converts to this type from the input type.
Source§impl From<RoutingResponse> for RoutingResponse
impl From<RoutingResponse> for RoutingResponse
Source§fn from(response: CoreRoutingResponse) -> Self
fn from(response: CoreRoutingResponse) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RoutingResponse
impl FromWasmAbi for RoutingResponse
Source§impl IntoWasmAbi for RoutingResponse
impl IntoWasmAbi for RoutingResponse
Source§impl LongRefFromWasmAbi for RoutingResponse
impl LongRefFromWasmAbi for RoutingResponse
Source§impl OptionFromWasmAbi for RoutingResponse
impl OptionFromWasmAbi for RoutingResponse
Source§impl OptionIntoWasmAbi for RoutingResponse
impl OptionIntoWasmAbi for RoutingResponse
Source§impl RefFromWasmAbi for RoutingResponse
impl RefFromWasmAbi for RoutingResponse
Source§type Anchor = RcRef<RoutingResponse>
type Anchor = RcRef<RoutingResponse>
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 RoutingResponse
impl RefMutFromWasmAbi for RoutingResponse
Source§impl TryFromJsValue for RoutingResponse
impl TryFromJsValue for RoutingResponse
Source§impl VectorFromWasmAbi for RoutingResponse
impl VectorFromWasmAbi for RoutingResponse
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RoutingResponse]>
Source§impl VectorIntoWasmAbi for RoutingResponse
impl VectorIntoWasmAbi for RoutingResponse
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RoutingResponse]>) -> Self::Abi
Source§impl WasmDescribeVector for RoutingResponse
impl WasmDescribeVector for RoutingResponse
impl SupportsConstructor for RoutingResponse
impl SupportsInstanceProperty for RoutingResponse
impl SupportsStaticProperty for RoutingResponse
Auto Trait Implementations§
impl Freeze for RoutingResponse
impl RefUnwindSafe for RoutingResponse
impl Send for RoutingResponse
impl Sync for RoutingResponse
impl Unpin for RoutingResponse
impl UnwindSafe for RoutingResponse
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> 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.