pub enum ProtobufExtractionError {
Parse {
source_path: String,
line: u32,
column: u32,
message: String,
},
InvalidDeclaration {
source_path: String,
line: u32,
message: String,
},
InvalidFieldNumber {
source_path: String,
field: String,
number: i64,
line: u32,
},
DuplicateField {
message: String,
coordinate: String,
value: String,
line: u32,
},
LimitExceeded(ExtractionLimitExceeded),
}Expand description
Error returned when a protobuf contract is malformed or internally inconsistent.
Variants§
Parse
The protobuf parser rejected the source.
Fields
InvalidDeclaration
The file contains conflicting or unsupported syntax declarations.
Fields
InvalidFieldNumber
A field number violates protobuf’s valid numeric range.
Fields
DuplicateField
A message repeats a field name or number.
Fields
LimitExceeded(ExtractionLimitExceeded)
Extraction exceeded one configured invocation resource.
Trait Implementations§
Source§impl Clone for ProtobufExtractionError
impl Clone for ProtobufExtractionError
Source§fn clone(&self) -> ProtobufExtractionError
fn clone(&self) -> ProtobufExtractionError
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 ProtobufExtractionError
impl Debug for ProtobufExtractionError
Source§impl<'de> Deserialize<'de> for ProtobufExtractionError
impl<'de> Deserialize<'de> for ProtobufExtractionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProtobufExtractionError
impl Display for ProtobufExtractionError
impl Eq for ProtobufExtractionError
Source§impl Error for ProtobufExtractionError
impl Error for ProtobufExtractionError
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<ExtractionLimitExceeded> for ProtobufExtractionError
impl From<ExtractionLimitExceeded> for ProtobufExtractionError
Source§fn from(source: ExtractionLimitExceeded) -> Self
fn from(source: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtobufExtractionError
impl PartialEq for ProtobufExtractionError
Source§impl Serialize for ProtobufExtractionError
impl Serialize for ProtobufExtractionError
impl StructuralPartialEq for ProtobufExtractionError
Auto Trait Implementations§
impl Freeze for ProtobufExtractionError
impl RefUnwindSafe for ProtobufExtractionError
impl Send for ProtobufExtractionError
impl Sync for ProtobufExtractionError
impl Unpin for ProtobufExtractionError
impl UnsafeUnpin for ProtobufExtractionError
impl UnwindSafe for ProtobufExtractionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.