pub struct AgentConfig {
pub versions: Vec<u16>,
pub capabilities: Capabilities,
pub max_frame: u32,
pub agent: String,
pub token: Option<String>,
pub ping_interval: Duration,
pub peer_timeout: Duration,
}Expand description
Settings for an AgentSession.
Fields§
§versions: Vec<u16>Protocol versions the agent speaks.
capabilities: Capabilities§max_frame: u32The largest frame payload the agent accepts.
agent: StringAgent name and version for the hello.
token: Option<String>The per-launch token the host started the agent with.
ping_interval: Duration§peer_timeout: DurationTrait 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§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
impl Eq for AgentConfig
Source§impl PartialEq for AgentConfig
impl PartialEq for AgentConfig
impl StructuralPartialEq for AgentConfig
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