pub struct AgentConfig {
pub name: String,
pub account: Account,
pub options: BackendOptions,
}Expand description
The full agent configuration the parent sends as the worker’s first stdin
line (before any command/query). Carrying it on stdin rather than argv keeps
credentials out of the process table. The Account/BackendOptions are
embedded verbatim (they are Serialize/Deserialize in ringo-core), so the
worker rebuilds the exact account the in-process path would — adding a
field to either struct can’t silently drift out of sync.
Fields§
§name: StringLabel for the agent (used in logs / per-agent log file names).
account: AccountThe SIP account to register.
options: BackendOptionsBackend options (audio driver, timeouts, recording, …).
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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 AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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