pub enum AttachMode {
Tethered,
Administrative,
Remote,
}Expand description
The 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.
Remote
This host is administering the device over the mesh, through the Node Management binding rather than a wire.
Administrative in every respect, and additionally bounded by what
that binding carries: the properties outside
admin_reachable are not
refused by this handle but simply absent, because the device
answers them STATUS_PROP_NOT_FOUND — an administrator learns the
property does not exist for it, not that it exists and was
withheld. Reading them would spend airtime to be told so.
Trait Implementations§
Source§impl Clone for AttachMode
impl Clone for AttachMode
Source§fn clone(&self) -> AttachMode
fn clone(&self) -> AttachMode
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
§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)
clone_to_uninit)