pub struct ActorServeArgs {
pub role: String,
pub id: Option<String>,
pub model: Option<String>,
pub workspace: Option<PathBuf>,
pub data_dir: Option<PathBuf>,
pub echo: bool,
pub bind: Option<SocketAddr>,
pub tls: bool,
pub cert_file: Option<PathBuf>,
pub key_file: Option<PathBuf>,
pub token: Option<String>,
}Fields§
§role: String§id: Option<String>Stable agent id; defaults to <role>-<short-uuid>.
model: Option<String>§workspace: Option<PathBuf>§data_dir: Option<PathBuf>§echo: bool§bind: Option<SocketAddr>Address to bind. None ⇒ loopback ephemeral port (current behavior).
Pass 0.0.0.0:PORT for a remotely-reachable worker
(remote-actor-plan P1, #181).
tls: boolTerminate TLS (wss://). Requires cert_file + key_file.
cert_file: Option<PathBuf>§key_file: Option<PathBuf>§token: Option<String>Bearer token the worker requires on the WS handshake. None ⇒ accept any
(loopback default).
Auto Trait Implementations§
impl Freeze for ActorServeArgs
impl RefUnwindSafe for ActorServeArgs
impl Send for ActorServeArgs
impl Sync for ActorServeArgs
impl Unpin for ActorServeArgs
impl UnsafeUnpin for ActorServeArgs
impl UnwindSafe for ActorServeArgs
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