pub enum OAuthError {
Response {
code: String,
message: String,
},
InsecureEndpoint(String),
Network(String),
Other(String),
}Expand description
Why an OAuth step failed. Messages match pi-mcp’s.
Variants§
Response
pi’s OAuthError: an OAuth error response.
InsecureEndpoint(String)
A token request would send credentials over plain HTTP.
Network(String)
A request got no response, as fetch failing.
Other(String)
Anything else, with pi’s message.
Trait Implementations§
Source§impl Clone for OAuthError
impl Clone for OAuthError
Source§impl Debug for OAuthError
impl Debug for OAuthError
Source§impl Display for OAuthError
impl Display for OAuthError
Source§impl Error for OAuthError
impl Error for OAuthError
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()
Source§impl PartialEq for OAuthError
impl PartialEq for OAuthError
impl StructuralPartialEq for OAuthError
Auto Trait Implementations§
impl Forget for OAuthError
impl Freeze for OAuthError
impl RefUnwindSafe for OAuthError
impl Send for OAuthError
impl Sync for OAuthError
impl Unpin for OAuthError
impl UnsafeUnpin for OAuthError
impl UnwindSafe for OAuthError
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