pub enum BeamError {
NoResponse,
SerializeFailed(String),
DeserializeFailed(String),
}Expand description
Errors returned by fetch.
Variants§
NoResponse
The host returned no response - typically means the per-invocation fetch limit was hit, the upstream timed out, or beam is not configured on this edge.
SerializeFailed(String)
Failed to JSON-encode the FetchOptions argument.
DeserializeFailed(String)
Failed to JSON-decode the host’s response payload.
Trait Implementations§
Source§impl Error for BeamError
impl Error for BeamError
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 Freeze for BeamError
impl RefUnwindSafe for BeamError
impl Send for BeamError
impl Sync for BeamError
impl Unpin for BeamError
impl UnsafeUnpin for BeamError
impl UnwindSafe for BeamError
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