pub struct EventChannelConfig {
pub enabled: bool,
pub listen: SocketAddr,
pub subscriptions: Vec<Subscription>,
}Expand description
Top-level configuration for the embedded HTTP event channel.
Add this to AgentConfig via the
event_channel field.
Fields§
§enabled: boolWhen false (default) the HTTP server is not started.
listen: SocketAddrThe socket address the HTTP server listens on.
subscriptions: Vec<Subscription>Glob patterns matching topics the agent should accept. An incoming
event whose topic matches at least one pattern is injected into the
conversation context.
Trait Implementations§
Source§impl Clone for EventChannelConfig
impl Clone for EventChannelConfig
Source§fn clone(&self) -> EventChannelConfig
fn clone(&self) -> EventChannelConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EventChannelConfig
impl Debug for EventChannelConfig
Source§impl Default for EventChannelConfig
impl Default for EventChannelConfig
Source§impl<'de> Deserialize<'de> for EventChannelConfig
impl<'de> Deserialize<'de> for EventChannelConfig
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 EventChannelConfig
impl RefUnwindSafe for EventChannelConfig
impl Send for EventChannelConfig
impl Sync for EventChannelConfig
impl Unpin for EventChannelConfig
impl UnsafeUnpin for EventChannelConfig
impl UnwindSafe for EventChannelConfig
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