pub enum EmbedderRoute {
Local,
Bridge,
}Expand description
Where face embeddings are being computed for this run.
Detection is always local — only the embedding (112×112 → 512-d step) can be offloaded. This is surfaced to the frontend so the user can confirm at a glance whether their cloud bridge is actually carrying load, vs silently falling back to local.
Variants§
Local
Local ONNX session — the default path.
Bridge
Configured remote bridge — embeddings POSTed as 112×112 crops.
Implementations§
Trait Implementations§
Source§impl Clone for EmbedderRoute
impl Clone for EmbedderRoute
Source§fn clone(&self) -> EmbedderRoute
fn clone(&self) -> EmbedderRoute
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 EmbedderRoute
impl Debug for EmbedderRoute
Source§impl PartialEq for EmbedderRoute
impl PartialEq for EmbedderRoute
Source§fn eq(&self, other: &EmbedderRoute) -> bool
fn eq(&self, other: &EmbedderRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EmbedderRoute
impl Eq for EmbedderRoute
impl StructuralPartialEq for EmbedderRoute
Auto Trait Implementations§
impl Freeze for EmbedderRoute
impl RefUnwindSafe for EmbedderRoute
impl Send for EmbedderRoute
impl Sync for EmbedderRoute
impl Unpin for EmbedderRoute
impl UnsafeUnpin for EmbedderRoute
impl UnwindSafe for EmbedderRoute
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more