pub struct PoseDetector { /* private fields */ }
Implementations§
Source§impl PoseDetector
impl PoseDetector
pub async fn estimate_poses( &self, image: &JsValue, config: EstimationConfig, timestamp: Option<i32>, ) -> Result<Vec<Pose>, JsValue>
Sourcepub fn dispose(&self)
pub fn dispose(&self)
The Drop
trait is implemented to call this function, so in Rust you can just drop it instead of calling this function directly.
pub fn reset(&self)
Trait Implementations§
Source§impl AsRef<JsValue> for PoseDetector
impl AsRef<JsValue> for PoseDetector
Source§impl Clone for PoseDetector
impl Clone for PoseDetector
Source§fn clone(&self) -> PoseDetector
fn clone(&self) -> PoseDetector
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<JsValue> for PoseDetector
impl From<JsValue> for PoseDetector
Source§impl Into<JsValue> for PoseDetector
impl Into<JsValue> for PoseDetector
Source§impl JsCast for PoseDetector
impl JsCast for PoseDetector
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(_val: &JsValue) -> &Self
fn unchecked_from_js_ref(_val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value has a type
T
. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified
type. Read more
Auto Trait Implementations§
impl Freeze for PoseDetector
impl RefUnwindSafe for PoseDetector
impl !Send for PoseDetector
impl !Sync for PoseDetector
impl Unpin for PoseDetector
impl UnwindSafe for PoseDetector
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