pub enum LinkKind {
Direct,
Relay,
Local,
Custom(Symbol),
}Expand description
Transport route currently carrying a device edge session.
Variants§
Direct
Direct local link.
Relay
Relayed link through another host.
Local
Host-local in-process link.
Custom(Symbol)
Any other route token carried as open data.
Implementations§
Source§impl LinkKind
impl LinkKind
Sourcepub fn zepp_bridge() -> Self
pub fn zepp_bridge() -> Self
Builds the Zepp Mini Program bridge route.
Sourcepub fn wifi_if_verified() -> Self
pub fn wifi_if_verified() -> Self
Builds the Wi-Fi route that may only be used after bring-up verification.
Sourcepub fn from_symbol(symbol: Symbol) -> Self
pub fn from_symbol(symbol: Symbol) -> Self
Builds a route kind from a symbol.
Trait Implementations§
impl Eq for LinkKind
impl StructuralPartialEq for LinkKind
Auto Trait Implementations§
impl Freeze for LinkKind
impl RefUnwindSafe for LinkKind
impl Send for LinkKind
impl Sync for LinkKind
impl Unpin for LinkKind
impl UnsafeUnpin for LinkKind
impl UnwindSafe for LinkKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.