pub struct ManagerState {
pub config: Option<SandboxRuntimeConfig>,
pub http_proxy: Option<HttpProxy>,
pub socks_proxy: Option<Socks5Proxy>,
pub http_proxy_port: Option<u16>,
pub socks_proxy_port: Option<u16>,
pub http_socket_path: Option<String>,
pub socks_socket_path: Option<String>,
pub bridges: Vec<SocatBridge>,
pub initialized: bool,
pub network_ready: bool,
pub violation_store: Arc<SandboxViolationStore>,
}Expand description
Internal state for the sandbox manager.
Fields§
§config: Option<SandboxRuntimeConfig>The current configuration.
http_proxy: Option<HttpProxy>HTTP proxy server.
socks_proxy: Option<Socks5Proxy>SOCKS5 proxy server.
http_proxy_port: Option<u16>HTTP proxy port.
socks_proxy_port: Option<u16>SOCKS5 proxy port.
http_socket_path: Option<String>Unix socket path for HTTP proxy (Linux only).
socks_socket_path: Option<String>Unix socket path for SOCKS5 proxy (Linux only).
bridges: Vec<SocatBridge>Socat bridge processes (Linux only).
initialized: boolWhether the manager has been initialized.
network_ready: boolWhether network is ready.
violation_store: Arc<SandboxViolationStore>Violation store.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ManagerState
impl !RefUnwindSafe for ManagerState
impl Send for ManagerState
impl Sync for ManagerState
impl Unpin for ManagerState
impl !UnwindSafe for ManagerState
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