pub struct ComputerSectionConfig {
pub name: String,
pub url: String,
pub key_file: PathBuf,
pub packs: Vec<String>,
pub call_timeout_s: u64,
}Expand description
[computer]: which computer this caller’s routed packs go to.
[computer]
name = "build-1"
url = "http://127.0.0.1:8700/mcp"
key_file = "/home/example/.secrets/computer-build-1.key"
packs = ["computer", "exec", "git", "blob", "tool"]
call_timeout_s = 3700The table is closed. No value in it is a secret: key_file is a path, and
Debug prints it as one without reading the file.
Fields§
§name: StringLabels the computer in the catalog and in refusals.
url: StringWhere the computer serves MCP over streamable HTTP.
key_file: PathBufAbsolute path of the file holding this caller’s computer key.
packs: Vec<String>The packs served by the computer for this caller.
call_timeout_s: u64How long a routed request may take, in seconds.
Implementations§
Source§impl ComputerSectionConfig
impl ComputerSectionConfig
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Check every rule of the table. Reads nothing from disk.
Sourcepub fn endpoint(&self) -> Result<ComputerEndpoint, ConfigError>
pub fn endpoint(&self) -> Result<ComputerEndpoint, ConfigError>
Parse url into the endpoint the client connects to.
Trait Implementations§
Source§impl Clone for ComputerSectionConfig
impl Clone for ComputerSectionConfig
Source§impl Debug for ComputerSectionConfig
impl Debug for ComputerSectionConfig
Source§impl<'de> Deserialize<'de> for ComputerSectionConfig
impl<'de> Deserialize<'de> for ComputerSectionConfig
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
impl Eq for ComputerSectionConfig
Source§impl PartialEq for ComputerSectionConfig
impl PartialEq for ComputerSectionConfig
impl StructuralPartialEq for ComputerSectionConfig
Auto Trait Implementations§
impl Forget for ComputerSectionConfig
impl Freeze for ComputerSectionConfig
impl Move for ComputerSectionConfig
impl RefUnwindSafe for ComputerSectionConfig
impl Send for ComputerSectionConfig
impl Sync for ComputerSectionConfig
impl Unpin for ComputerSectionConfig
impl UnsafeUnpin for ComputerSectionConfig
impl UnwindSafe for ComputerSectionConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more