pub struct NodeClient { /* private fields */ }Expand description
ctx.node — facts about the node the plugin runs on.
The plugin’s sandbox hides the agent’s sidecars and config, so this is the sanctioned read of what the agent itself decides on: the profile, the board and its accelerators, the ground-station role, whether the camera pipeline is up and the main stream’s geometry.
Implementations§
Source§impl NodeClient
impl NodeClient
Sourcepub async fn info(&self) -> Result<NodeInfo, ClientError>
pub async fn info(&self) -> Result<NodeInfo, ClientError>
Read the node facts. Needs node.info.read. Each fact whose source is
absent is None. See PluginIpcClient::node_info.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodeClient
impl !UnwindSafe for NodeClient
impl Freeze for NodeClient
impl Send for NodeClient
impl Sync for NodeClient
impl Unpin for NodeClient
impl UnsafeUnpin for NodeClient
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