pub enum PredicateRpcEncodeError {
Encode(Error),
TooLarge {
actual: usize,
limit: usize,
},
}Expand description
Errors raised by predicate_to_rpc_header.
Variants§
Encode(Error)
serde_json::to_vec failed on the wire-form predicate.
TooLarge
The encoded payload exceeds the header-value cap.
Trait Implementations§
Source§impl Debug for PredicateRpcEncodeError
impl Debug for PredicateRpcEncodeError
Source§impl Display for PredicateRpcEncodeError
impl Display for PredicateRpcEncodeError
Source§impl Error for PredicateRpcEncodeError
impl Error for PredicateRpcEncodeError
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 PredicateRpcEncodeError
impl !RefUnwindSafe for PredicateRpcEncodeError
impl Send for PredicateRpcEncodeError
impl Sync for PredicateRpcEncodeError
impl Unpin for PredicateRpcEncodeError
impl UnsafeUnpin for PredicateRpcEncodeError
impl !UnwindSafe for PredicateRpcEncodeError
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