pub struct AssistantConfig {
pub name: String,
pub serial: Option<String>,
pub product: Option<String>,
pub addr: Option<String>,
pub token_file: Option<PathBuf>,
}Expand description
An assistant node speaking banc-icd over postcard-rpc, reached over USB (serial/product match) or the network (addr + token).
Fields§
§name: StringName tests use to look the node up, e.g. “a0”.
serial: Option<String>USB serial string (assistants surface their unique ID here).
product: Option<String>USB product string to match when serial is not given.
addr: Option<String>host:port of a network node (a rig daemon). Mutually exclusive with the USB fields.
token_file: Option<PathBuf>Token file for the network handshake; relative paths resolve from the rig-config directory.
Trait Implementations§
Source§impl Clone for AssistantConfig
impl Clone for AssistantConfig
Source§fn clone(&self) -> AssistantConfig
fn clone(&self) -> AssistantConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantConfig
impl Debug for AssistantConfig
Source§impl<'de> Deserialize<'de> for AssistantConfig
impl<'de> Deserialize<'de> for AssistantConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssistantConfig
impl RefUnwindSafe for AssistantConfig
impl Send for AssistantConfig
impl Sync for AssistantConfig
impl Unpin for AssistantConfig
impl UnsafeUnpin for AssistantConfig
impl UnwindSafe for AssistantConfig
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