pub struct CasterConfig {
pub runtime: String,
pub key: Option<String>,
pub caster_id: Option<String>,
pub max_concurrent: u32,
pub heartbeat_interval_secs: f64,
pub reconnect_base_delay_secs: f64,
pub reconnect_max_delay_secs: f64,
pub labels: HashMap<String, String>,
}Expand description
Configuration for the Caster instance.
Fields§
§runtime: StringgRPC endpoint of the Rune Runtime. Default: “localhost:50070”.
key: Option<String>API key for authentication.
caster_id: Option<String>Unique identifier for this Caster instance. Auto-generated if None.
max_concurrent: u32Maximum concurrent request handling. Default: 10.
heartbeat_interval_secs: f64Heartbeat interval in seconds. Default: 10.0.
reconnect_base_delay_secs: f64Initial reconnect delay in seconds. Default: 1.0.
reconnect_max_delay_secs: f64Maximum reconnect delay in seconds. Default: 30.0.
labels: HashMap<String, String>Caster labels for metadata.
Trait Implementations§
Source§impl Clone for CasterConfig
impl Clone for CasterConfig
Source§fn clone(&self) -> CasterConfig
fn clone(&self) -> CasterConfig
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 CasterConfig
impl Debug for CasterConfig
Auto Trait Implementations§
impl Freeze for CasterConfig
impl RefUnwindSafe for CasterConfig
impl Send for CasterConfig
impl Sync for CasterConfig
impl Unpin for CasterConfig
impl UnsafeUnpin for CasterConfig
impl UnwindSafe for CasterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request