pub enum WebmcpError {
Show 19 variants
InvalidRequest(String),
OriginRejected(String),
PairingExpired,
PairingUsed,
Unauthorized,
LimitExceeded,
PathRejected(String),
Conflict {
path: String,
expected: String,
actual: String,
},
ProposalNotFound,
ApprovalRequired,
Unsupported(String),
ChangeNotFound,
PartialApply,
SequenceGap {
requested: u64,
oldest: u64,
},
SlowClient,
Timeout(Duration),
Io(Error),
Json(Error),
Adapter(String),
}Expand description
Errors returned by the WebMCP bridge and its runtime adapters.
Variants§
InvalidRequest(String)
The request or configuration is malformed.
OriginRejected(String)
The browser origin is not explicitly allowed.
PairingExpired
The pairing code is unknown or has expired.
PairingUsed
A one-time pairing code was already consumed.
The session token has been revoked or is not recognized.
LimitExceeded
A request exceeded a configured transport limit.
PathRejected(String)
The requested path is outside the workspace boundary.
Conflict
The browser based its edit on a stale file.
Fields
ProposalNotFound
A proposal identifier was not found.
ApprovalRequired
A mutation was requested without terminal authorization.
Unsupported(String)
The selected adapter does not implement the requested operation.
ChangeNotFound
A revert identifier was not found or is no longer current.
PartialApply
A multi-file mutation could not be fully rolled back.
SequenceGap
The event hub cannot replay the requested range.
Fields
SlowClient
A subscriber could not keep up with lifecycle events.
Timeout(Duration)
An adapter operation exceeded its deadline.
Io(Error)
An underlying filesystem or process operation failed.
Json(Error)
A JSON protocol payload failed to decode.
Adapter(String)
An adapter returned a contextual failure.
Trait Implementations§
Source§impl Debug for WebmcpError
impl Debug for WebmcpError
Source§impl Display for WebmcpError
impl Display for WebmcpError
Source§impl Error for WebmcpError
impl Error for WebmcpError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for WebmcpError
impl From<Error> for WebmcpError
Auto Trait Implementations§
impl !RefUnwindSafe for WebmcpError
impl !UnwindSafe for WebmcpError
impl Freeze for WebmcpError
impl Send for WebmcpError
impl Sync for WebmcpError
impl Unpin for WebmcpError
impl UnsafeUnpin for WebmcpError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more