#[non_exhaustive]pub struct NodeView<'a> { /* private fields */ }Expand description
What a RadioProfile is told about the node it is configuring.
A view rather than the mode itself, and #[non_exhaustive] on purpose. Profiles live
out-of-tree, so every change to what they are handed is a breaking change for someone; passing a
struct means the node can start offering a profile more of its configuration or its hardware
without changing the trait’s signature again.
Mode stays exhaustive inside this crate, because there a new mode should be a compile
error in the dispatch that has to handle it.
Implementations§
Source§impl<'a> NodeView<'a>
impl<'a> NodeView<'a>
Sourcepub fn session_role(&self) -> Option<SessionRole>
pub fn session_role(&self) -> Option<SessionRole>
The node’s session role, or None for an observer.
Sourcepub fn sensing_role(&self) -> SensingRole
pub fn sensing_role(&self) -> SensingRole
The node’s sensing role.
Auto Trait Implementations§
impl<'a> Freeze for NodeView<'a>
impl<'a> RefUnwindSafe for NodeView<'a>
impl<'a> Send for NodeView<'a>
impl<'a> Sync for NodeView<'a>
impl<'a> Unpin for NodeView<'a>
impl<'a> UnsafeUnpin for NodeView<'a>
impl<'a> UnwindSafe for NodeView<'a>
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