pub enum KernelError {
Source(String),
Assembly(AssemblyError),
Refused {
engine: Engine,
reason: String,
},
ConstantFold {
reason: String,
},
Write(WriteError),
ConstInit {
name: String,
reason: String,
},
Resources(ScopeJoinError),
}Expand description
Why a kernel was not built: the one error type of every constructor
that takes an Engine.
Variants§
Source(String)
The source did not parse or compile; the message is the DSL front end’s.
Assembly(AssemblyError)
The graph did not assemble.
Refused
The engine refuses this graph, which the interpreter accepts;
reason names the node or construct.
ConstantFold
A compile-constant step could not be computed. A step no input
reaches runs once at build, so what it does there it will do on
every pull; there is nothing a later evaluation could supply
that would make it succeed. Distinct from Self::Refused,
which is one engine declining a program the others accept:
every engine reports this one, and reports it at build.
Fields
Write(WriteError)
A value written into a kernel while building it was refused: an iteration binding or a value a binder copied from a parent that does not satisfy the child’s declared input.
ConstInit
A const binding could not be computed when the kernel was
initialized. A const is evaluated once, at initialization, so a
failing const makes initialization fail.
Resources(ScopeJoinError)
Binding a child under a parent could not join the child
program’s resource scope to the parent’s
(ResourceScope::join).
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<AssemblyError> for KernelError
impl From<AssemblyError> for KernelError
Source§fn from(e: AssemblyError) -> Self
fn from(e: AssemblyError) -> Self
Source§impl From<KernelError> for ContractViolation
impl From<KernelError> for ContractViolation
Source§fn from(e: KernelError) -> Self
fn from(e: KernelError) -> Self
Auto Trait Implementations§
impl Forget for KernelError
impl Freeze for KernelErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, PortType)>: Freeze,
PhantomData<String>: Freeze,
impl Move for KernelError
impl RefUnwindSafe for KernelError
impl Send for KernelErrorwhere
RawVecInner: Send,
impl Sync for KernelErrorwhere
RawVecInner: Sync,
impl Unpin for KernelError
impl UnsafeUnpin for KernelErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, PortType)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KernelErrorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more