pub enum ScryptoCompilerError {
Show 14 variants
IOError(Error, Option<String>),
IOErrorWithPath(Error, PathBuf, Option<String>),
CargoBuildFailure(ExitStatus),
CargoMetadataFailure(String, PathBuf, ExitStatus),
CargoTargetDirectoryResolutionError(String),
CargoTargetBinaryResolutionError,
CargoManifestLoadFailure(String),
CargoManifestFileNotFound(String),
CargoWrongPackageId(String),
WasmOptimizationError(OptimizationError),
SchemaExtractionError(ExtractSchemaError),
SchemaEncodeError(EncodeError),
SchemaDecodeError(DecodeError),
NothingToCompile,
}
Variants§
IOError(Error, Option<String>)
Returns IO Error which occurred during compilation and optional context information.
IOErrorWithPath(Error, PathBuf, Option<String>)
Returns IO Error which occurred during compilation, path of a file related to that fail and optional context information.
CargoBuildFailure(ExitStatus)
Returns process exit status in case of ‘cargo build’ fail.
CargoMetadataFailure(String, PathBuf, ExitStatus)
Returns cargo metadata
command stderr output, path to Cargo.toml for which cargo metadata
command failed and process exit status.
CargoTargetDirectoryResolutionError(String)
Returns path to Cargo.toml for which results of cargo metadata command is not not valid json or target directory field is missing.
CargoTargetBinaryResolutionError
Compiler is unable to generate target binary file name.
CargoManifestLoadFailure(String)
Returns path to Cargo.toml which was failed to load.
CargoManifestFileNotFound(String)
Returns path to Cargo.toml which cannot be found.
CargoWrongPackageId(String)
Provided package ID is not a member of the workspace.
WasmOptimizationError(OptimizationError)
Returns WASM Optimization error.
SchemaExtractionError(ExtractSchemaError)
Returns error occured during schema extraction.
SchemaEncodeError(EncodeError)
Returns error occured during schema encoding.
SchemaDecodeError(DecodeError)
Returns error occured during schema decoding.
NothingToCompile
Returned when trying to compile workspace without any scrypto packages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScryptoCompilerError
impl !RefUnwindSafe for ScryptoCompilerError
impl Send for ScryptoCompilerError
impl Sync for ScryptoCompilerError
impl Unpin for ScryptoCompilerError
impl !UnwindSafe for ScryptoCompilerError
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
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.