pub struct NatsConfig {
pub url: String,
pub ag_ui_subject: String,
pub ai_sdk_subject: String,
pub outbound_buffer: usize,
}Fields§
§url: String§ag_ui_subject: String§ai_sdk_subject: String§outbound_buffer: usizeImplementations§
Source§impl NatsConfig
impl NatsConfig
pub fn new(url: String) -> Self
pub async fn connect(&self) -> Result<NatsTransport, NatsProtocolError>
Trait Implementations§
Source§impl Clone for NatsConfig
impl Clone for NatsConfig
Source§fn clone(&self) -> NatsConfig
fn clone(&self) -> NatsConfig
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 moreAuto Trait Implementations§
impl Freeze for NatsConfig
impl RefUnwindSafe for NatsConfig
impl Send for NatsConfig
impl Sync for NatsConfig
impl Unpin for NatsConfig
impl UnwindSafe for NatsConfig
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