pub struct LegacyClassifier;Expand description
Legacy classifier that preserves current behavior for existing OpenRTC/Plutonium scope conventions:
- prefer any
drive-grant:<id>scope →session_kind=drive-grant-guest,grant_id=<id> - else if
user-devicepresent →session_kind=app-user-device
Trait Implementations§
Source§impl Clone for LegacyClassifier
impl Clone for LegacyClassifier
Source§impl Debug for LegacyClassifier
impl Debug for LegacyClassifier
Source§impl Default for LegacyClassifier
impl Default for LegacyClassifier
Source§impl ScopeClassifier for LegacyClassifier
impl ScopeClassifier for LegacyClassifier
Source§fn classify_scopes(&self, scopes: &[String]) -> ScopeClassification
fn classify_scopes(&self, scopes: &[String]) -> ScopeClassification
Given the admitted scopes on a connection (ordered arbitrary), choose
the most specific classification. Implementations should be cheap.
Auto Trait Implementations§
impl Freeze for LegacyClassifier
impl RefUnwindSafe for LegacyClassifier
impl Send for LegacyClassifier
impl Sync for LegacyClassifier
impl Unpin for LegacyClassifier
impl UnsafeUnpin for LegacyClassifier
impl UnwindSafe for LegacyClassifier
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