#[non_exhaustive]pub enum ExportError {
NotLibraryOrBinary(TargetId),
Budget(LoadError),
Storage(LoadError),
CarryBudget {
path: String,
error: LoadError,
},
Resolve(ResolveError),
}Expand description
Why the public surface of a target could not be listed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotLibraryOrBinary(TargetId)
The id names no library or binary target of the workspace: only those have a crate root that is a public surface.
Budget(LoadError)
What the surface holds passes the item-bytes budget left after the
load: a Budget load error naming the budget, its limit and the file
and line of the item whose entry passed it.
Storage(LoadError)
Native traversal storage failed its physical layout or allocation. The load error preserves the original file, line and source cause.
CarryBudget
Deciding whether the public globs of a module of the surface carry
the re-export at path from a module they reach passes the
item-bytes budget left after the load, which charges the work of that
decision: error is the Budget load error, naming the file and line
of the carried use declaration.
Fields
Resolve(ResolveError)
A public name of the surface does not resolve: it is ambiguous, goes
through a cycle of imports, or reads a glob whose path names nothing
in the workspace, as Workspace::resolve
reports it for that path.
Trait Implementations§
Source§impl Debug for ExportError
impl Debug for ExportError
Source§impl Display for ExportError
impl Display for ExportError
Source§impl Error for ExportError
impl Error for ExportError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ExportError
impl !UnwindSafe for ExportError
impl Forget for ExportError
impl Freeze for ExportError
impl Move for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl UnsafeUnpin for ExportError
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> ErrorExt for T
impl<T> ErrorExt for T
Source§fn raise_typed(self) -> Exn<Self>where
Self: Sized,
fn raise_typed(self) -> Exn<Self>where
Self: Sized,
Self even when it is already an Error.Source§fn and_raise_typed<T>(self, context: T) -> Exn<T>
fn and_raise_typed<T>(self, context: T) -> Exn<T>
Self::and_raise(), retaining the context’s type in an exception.Source§fn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
crate::Error values reuse their existing frame and caller location.impl<T> EvidenceLease for T
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 more