pub enum Error {
Show 14 variants
Layout(LayoutError),
Io(Arc<Error>),
Internal,
CellBuildFatal,
CacheError(Arc<Error>),
Panic,
CommandFailed(Arc<Command>),
Gds(GdsError),
GdsImport(GdsImportError),
Boxed(Arc<dyn Error + Send + Sync>),
Anyhow(Arc<Error>),
ScirConversion(ConvError),
UnsupportedPrimitive,
LayirExport(LayirExportError),
}
Expand description
The error type for Substrate functions.
Variants§
Layout(LayoutError)
An error in a layout-related routine.
Io(Arc<Error>)
An I/O error.
Internal
An internal Substrate error that indicates a bug in the source code.
CellBuildFatal
An error indicating that one or more fatal errors occured while building a cell.
CacheError(Arc<Error>)
An error thrown by caching functions.
Panic
An error thrown when a thread spawned during generation panics.
CommandFailed(Arc<Command>)
Executing a command failed.
Gds(GdsError)
GDS error.
GdsImport(GdsImportError)
Error importing GDS.
Boxed(Arc<dyn Error + Send + Sync>)
An arbitrary error for external use.
Anyhow(Arc<Error>)
An anyhow::Error
for external use.
ScirConversion(ConvError)
Schematic to SCIR conversion produced errors.
UnsupportedPrimitive
An error indicating that the schema does not support an instantiated primitive.
LayirExport(LayirExportError)
Indicates an error exporting a layout cell to LayIR.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<GdsImportError> for Error
impl From<GdsImportError> for Error
Source§fn from(source: GdsImportError) -> Self
fn from(source: GdsImportError) -> Self
Converts to this type from the input type.
Source§impl From<LayirExportError> for Error
impl From<LayirExportError> for Error
Source§fn from(source: LayirExportError) -> Self
fn from(source: LayirExportError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for Error
impl From<LayoutError> for Error
Source§fn from(value: LayoutError) -> Self
fn from(value: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request