pub enum OrderExtensionError {
ExceedsMaximumSize(usize),
Malformed,
UnsupportedVersion(u16),
BuilderIdExceedsMaximum {
id: U256,
},
FeeExceedsMaximum(U256),
}Expand description
Failure decoding a V2 order-extension envelope.
Variants§
ExceedsMaximumSize(usize)
Envelope is larger than the contract’s decoder accepts. Structural fault - reverts on every path.
Malformed
Envelope is not abi.encode(uint16, bytes), or its payload is not
abi.encode(uint256, uint256). Structural fault - reverts on every
path.
UnsupportedVersion(u16)
Envelope version tag is not ORDER_EXTENSION_VERSION. Recoverable
fault - the contract skips just this order on the batched/forwarded
paths.
BuilderIdExceedsMaximum
Builder code is out of the uint8 range. Recoverable fault.
FeeExceedsMaximum(U256)
Builder fee rate exceeds MAX_BUILDER_FEE_PER_100K. Recoverable
fault.
Trait Implementations§
Source§impl Clone for OrderExtensionError
impl Clone for OrderExtensionError
Source§fn clone(&self) -> OrderExtensionError
fn clone(&self) -> OrderExtensionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderExtensionError
impl Debug for OrderExtensionError
Source§impl Display for OrderExtensionError
impl Display for OrderExtensionError
Source§impl Error for OrderExtensionError
impl Error for OrderExtensionError
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 From<OrderExtensionError> for DexError
impl From<OrderExtensionError> for DexError
Source§fn from(source: OrderExtensionError) -> Self
fn from(source: OrderExtensionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OrderExtensionError
impl RefUnwindSafe for OrderExtensionError
impl Send for OrderExtensionError
impl Sync for OrderExtensionError
impl Unpin for OrderExtensionError
impl UnsafeUnpin for OrderExtensionError
impl UnwindSafe for OrderExtensionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.