pub struct ActorConfig {Show 28 fields
pub name: Option<String>,
pub icon: Option<String>,
pub has_database: bool,
pub remote_sqlite: bool,
pub enable_actor_runtime_socket: bool,
pub has_state: bool,
pub can_hibernate_websocket: CanHibernateWebSocket,
pub state_save_interval: Duration,
pub create_vars_timeout: Duration,
pub create_conn_state_timeout: Duration,
pub on_before_connect_timeout: Duration,
pub on_connect_timeout: Duration,
pub on_migrate_timeout: Duration,
pub action_timeout: Duration,
pub sleep_timeout: Duration,
pub no_sleep: bool,
pub sleep_grace_period: Duration,
pub sleep_grace_period_overridden: bool,
pub connection_liveness_timeout: Duration,
pub connection_liveness_interval: Duration,
pub max_queue_size: u32,
pub max_schedules: u32,
pub max_queue_message_size: u32,
pub max_incoming_message_size: u32,
pub max_outgoing_message_size: u32,
pub overrides: Option<ActorConfigOverrides>,
pub actions: Vec<ActionDefinition>,
pub inspector_tabs: Vec<InspectorTabEntry>,
}Fields§
§name: Option<String>§icon: Option<String>§has_database: boolWhether the user declared a SQLite database for this actor (db({...})
on the TS side). Gates the inspector database tab.
remote_sqlite: bool§enable_actor_runtime_socket: boolEnables the experimental Actor Runtime Socket.
has_state: boolWhether the user declared actor state (state: ... or createState).
Gates the inspector state tab and state-subscription messages.
can_hibernate_websocket: CanHibernateWebSocket§state_save_interval: Duration§create_vars_timeout: Duration§create_conn_state_timeout: Duration§on_before_connect_timeout: Duration§on_connect_timeout: Duration§on_migrate_timeout: Duration§action_timeout: Duration§sleep_timeout: Duration§no_sleep: bool§sleep_grace_period: Duration§sleep_grace_period_overridden: bool§connection_liveness_timeout: Duration§connection_liveness_interval: Duration§max_queue_size: u32§max_schedules: u32§max_queue_message_size: u32§max_incoming_message_size: u32§max_outgoing_message_size: u32§overrides: Option<ActorConfigOverrides>§actions: Vec<ActionDefinition>§inspector_tabs: Vec<InspectorTabEntry>Author-declared inspector tab entries (custom tabs + built-in hides). Validated upstream (Zod / builder).
Implementations§
Source§impl ActorConfig
impl ActorConfig
pub fn from_input(config: ActorConfigInput) -> Self
pub fn effective_sleep_grace_period(&self) -> Duration
Trait Implementations§
Source§impl Clone for ActorConfig
impl Clone for ActorConfig
Source§fn clone(&self) -> ActorConfig
fn clone(&self) -> ActorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActorConfig
impl Debug for ActorConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ActorConfig
impl !UnwindSafe for ActorConfig
impl Freeze for ActorConfig
impl Send for ActorConfig
impl Sync for ActorConfig
impl Unpin for ActorConfig
impl UnsafeUnpin for ActorConfig
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