pub struct SidecarConfig {
pub image: String,
pub vsock_port: u32,
pub env: Vec<(String, String)>,
}Expand description
Sidecar process configuration.
A sidecar runs as a co-process inside the same MicroVM alongside the main container. It is launched before the main entrypoint and communicates with the host via a dedicated vsock port.
Primary use case: SafeClaw security proxy that intercepts and classifies agent traffic before it reaches the LLM.
§Data flow
Agent → SafeClaw (vsock 4092) → classified/sanitized → LLMFields§
§image: StringOCI image reference for the sidecar (e.g., “ghcr.io/a3s-lab/safeclaw:latest”)
vsock_port: u32Vsock port the sidecar listens on for host-side control (default: 4092)
env: Vec<(String, String)>Extra environment variables for the sidecar process
Trait Implementations§
Source§impl Clone for SidecarConfig
impl Clone for SidecarConfig
Source§fn clone(&self) -> SidecarConfig
fn clone(&self) -> SidecarConfig
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 SidecarConfig
impl Debug for SidecarConfig
Source§impl Default for SidecarConfig
impl Default for SidecarConfig
Source§impl<'de> Deserialize<'de> for SidecarConfig
impl<'de> Deserialize<'de> for SidecarConfig
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 SidecarConfig
impl RefUnwindSafe for SidecarConfig
impl Send for SidecarConfig
impl Sync for SidecarConfig
impl Unpin for SidecarConfig
impl UnsafeUnpin for SidecarConfig
impl UnwindSafe for SidecarConfig
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