pub struct AsyncPersonSegmentation { /* private fields */ }Available on crate features
async and segmentation only.Expand description
Async wrapper for VNGeneratePersonSegmentationRequest.
Implementations§
Source§impl AsyncPersonSegmentation
impl AsyncPersonSegmentation
pub const fn new(quality: SegmentationQuality) -> Self
Sourcepub fn generate_in_path(
&self,
path: impl AsRef<Path>,
) -> PersonSegmentationFuture ⓘ
pub fn generate_in_path( &self, path: impl AsRef<Path>, ) -> PersonSegmentationFuture ⓘ
Generate a person segmentation mask for the image at path asynchronously.
§Errors
Returns VisionError::RequestFailed if Vision fails.
Trait Implementations§
Source§impl Clone for AsyncPersonSegmentation
impl Clone for AsyncPersonSegmentation
Source§fn clone(&self) -> AsyncPersonSegmentation
fn clone(&self) -> AsyncPersonSegmentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AsyncPersonSegmentation
impl Debug for AsyncPersonSegmentation
Source§impl Default for AsyncPersonSegmentation
impl Default for AsyncPersonSegmentation
impl Copy for AsyncPersonSegmentation
Auto Trait Implementations§
impl Freeze for AsyncPersonSegmentation
impl RefUnwindSafe for AsyncPersonSegmentation
impl Send for AsyncPersonSegmentation
impl Sync for AsyncPersonSegmentation
impl Unpin for AsyncPersonSegmentation
impl UnsafeUnpin for AsyncPersonSegmentation
impl UnwindSafe for AsyncPersonSegmentation
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