pub struct Node {
pub identity: Identity,
/* private fields */
}Fields§
§identity: IdentityImplementations§
Source§impl Node
impl Node
Sourcepub async fn connect(cfg: &AssistantConfig, token: Option<&str>) -> Result<Node>
pub async fn connect(cfg: &AssistantConfig, token: Option<&str>) -> Result<Node>
Connect per the config entry: network when addr is set, USB
enumeration otherwise. token must be pre-resolved by the caller
(the rig knows the config’s base directory; this module does not).
Sourcepub fn client(&self) -> &HostClient<WireError>
pub fn client(&self) -> &HostClient<WireError>
The raw postcard-rpc client, for consumer-defined endpoints/topics.
Auto Trait Implementations§
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
impl Freeze for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
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