pub enum McpStreamableHttpConfigError {
Url(EndpointError),
EmptyName,
InvalidHeaderName {
name: String,
},
InvalidHeaderValue {
name: String,
},
ReservedHeader {
name: String,
},
PlaintextCredentials {
url: String,
},
}Expand description
Errors from validating an McpStreamableHttpServerConfig.
Variants§
Url(EndpointError)
EmptyName
InvalidHeaderName
InvalidHeaderValue
Rendered without the value so a malformed credential never reaches a log.
ReservedHeader
PlaintextCredentials
Trait Implementations§
Source§impl Clone for McpStreamableHttpConfigError
impl Clone for McpStreamableHttpConfigError
Source§fn clone(&self) -> McpStreamableHttpConfigError
fn clone(&self) -> McpStreamableHttpConfigError
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 McpStreamableHttpConfigError
impl Debug for McpStreamableHttpConfigError
impl Eq for McpStreamableHttpConfigError
Source§impl Error for McpStreamableHttpConfigError
impl Error for McpStreamableHttpConfigError
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()
Source§impl From<EndpointError> for McpStreamableHttpConfigError
impl From<EndpointError> for McpStreamableHttpConfigError
Source§fn from(source: EndpointError) -> McpStreamableHttpConfigError
fn from(source: EndpointError) -> McpStreamableHttpConfigError
Converts to this type from the input type.
impl StructuralPartialEq for McpStreamableHttpConfigError
Auto Trait Implementations§
impl Forget for McpStreamableHttpConfigError
impl Freeze for McpStreamableHttpConfigError
impl RefUnwindSafe for McpStreamableHttpConfigError
impl Send for McpStreamableHttpConfigError
impl Sync for McpStreamableHttpConfigError
impl Unpin for McpStreamableHttpConfigError
impl UnsafeUnpin for McpStreamableHttpConfigError
impl UnwindSafe for McpStreamableHttpConfigError
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