#[non_exhaustive]pub enum BuildError {
DuplicateTool(String),
DuplicateResource(String),
DuplicatePrompt(String),
InvalidIcon(String),
InvalidResourceTemplate(String),
DuplicateResourceTemplate(String),
}Expand description
Why an McpServer could not be served.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateTool(String)
Two tools (agents, typed agents or plain tools) have the same name, so a client could not tell which one it calls.
DuplicateResource(String)
Two resources have the same URI, so a client could not tell which one it reads.
DuplicatePrompt(String)
Two prompts have the same name, so a client could not tell which one it gets.
InvalidIcon(String)
An icon’s src is neither an http:// or https:// URL nor a data:
URI, so a client could not fetch it. Carries the src given.
InvalidResourceTemplate(String)
A resource template is malformed: an unclosed or empty {}, a variable
name that is not letters, digits or _, a stray }, or a variable used
twice. Carries the template given.
DuplicateResourceTemplate(String)
Two resource templates have the same text, so a client could not tell which one it reads.
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for BuildError
impl Freeze for BuildError
impl Move for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildErrorwhere
RawVecInner: Send,
impl Sync for BuildErrorwhere
RawVecInner: Sync,
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildErrorwhere
RawVecInner: UnwindSafe,
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