pub enum PredicateRpcDecodeError {
Json(Error),
Wire(PredicateWireError),
Oversize {
actual: usize,
limit: usize,
},
}Expand description
Errors raised by predicate_from_rpc_headers.
Variants§
Json(Error)
JSON parse failed on the header value.
Wire(PredicateWireError)
Wire payload was structurally malformed (cycle, OOB index, empty table).
Oversize
Header value bytes exceeded the negotiated cap
(MAX_PREDICATE_RPC_HEADER_VALUE_LEN). Mirrors the encode
side’s TooLarge; rejects parse-bombs before serde walks
the payload.
Trait Implementations§
Source§impl Debug for PredicateRpcDecodeError
impl Debug for PredicateRpcDecodeError
Source§impl Display for PredicateRpcDecodeError
impl Display for PredicateRpcDecodeError
Source§impl Error for PredicateRpcDecodeError
impl Error for PredicateRpcDecodeError
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<Error> for PredicateRpcDecodeError
impl From<Error> for PredicateRpcDecodeError
Source§impl From<PredicateWireError> for PredicateRpcDecodeError
impl From<PredicateWireError> for PredicateRpcDecodeError
Source§fn from(source: PredicateWireError) -> Self
fn from(source: PredicateWireError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PredicateRpcDecodeError
impl !UnwindSafe for PredicateRpcDecodeError
impl Freeze for PredicateRpcDecodeError
impl Send for PredicateRpcDecodeError
impl Sync for PredicateRpcDecodeError
impl Unpin for PredicateRpcDecodeError
impl UnsafeUnpin for PredicateRpcDecodeError
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