pub enum AttachMode {
Tethered,
Administrative,
}Expand description
The two relationships a host can have with a device.
They are different things, and conflating them is how one phone administering ten repeaters ends up claiming all of them. Tethering is a transient local relationship — at most one at a time, re-established on every attach, invisible to the mesh. Administration is configuration of the device’s own identity and behavior, which outlives any particular host.
Variants§
Tethered
This host is the device’s tethered host: it provisions the host domain and the device filters, queues and acknowledges for it.
Administrative
This host is administering the device without tethering to it. Host-domain writes are refused.
Trait Implementations§
Source§impl Clone for AttachMode
impl Clone for AttachMode
Source§fn clone(&self) -> AttachMode
fn clone(&self) -> AttachMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttachMode
impl Debug for AttachMode
Source§impl Default for AttachMode
impl Default for AttachMode
Source§fn default() -> AttachMode
fn default() -> AttachMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttachMode
impl PartialEq for AttachMode
impl Copy for AttachMode
impl Eq for AttachMode
impl StructuralPartialEq for AttachMode
Auto Trait Implementations§
impl Freeze for AttachMode
impl RefUnwindSafe for AttachMode
impl Send for AttachMode
impl Sync for AttachMode
impl Unpin for AttachMode
impl UnwindSafe for AttachMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)