[−][src]Enum tracers_codegen::TracersError
Variants
Fields of CodeGenerationError
message: String
Methods
impl TracersError
[src]
pub fn invalid_provider<T: ToTokens>(
message: impl AsRef<str>,
element: T
) -> TracersError
[src]
message: impl AsRef<str>,
element: T
) -> TracersError
pub fn syn_error(message: impl AsRef<str>, e: Error) -> TracersError
[src]
pub fn syn_like_error<T: ToTokens, U: Display>(
message: U,
tokens: T
) -> TracersError
[src]
message: U,
tokens: T
) -> TracersError
When we need to raise an error that is attached to a syn
type (meaning the span of the
error will correctly be associated with that type), this method is used. There is no
actual syn
error, we're just reporting a logic error of our own while processing some
syn
types.
pub fn darling_error(e: DarlingError) -> TracersError
[src]
pub fn invalid_call_expression<T: ToTokens>(
message: impl AsRef<str>,
element: T
) -> TracersError
[src]
message: impl AsRef<str>,
element: T
) -> TracersError
pub fn other_error<D: Display + Send + Sync + 'static>(
e: Context<D>
) -> TracersError
[src]
e: Context<D>
) -> TracersError
pub fn missing_call_in_build_rs() -> TracersError
[src]
pub fn build_info_read_error(build_info_path: PathBuf, e: Error) -> TracersError
[src]
pub fn build_info_write_error(
build_info_path: PathBuf,
e: Error
) -> TracersError
[src]
build_info_path: PathBuf,
e: Error
) -> TracersError
pub fn provider_trait_not_processed_error<T: AsRef<str>, E: Into<Error> + Display>(
trait_name: T,
e: E
) -> TracersError
[src]
trait_name: T,
e: E
) -> TracersError
pub fn code_generation_error<S: AsRef<str>>(message: S) -> TracersError
[src]
pub fn native_code_generation_error<S: AsRef<str>, E: Into<Error> + Display>(
message: S,
e: E
) -> TracersError
[src]
message: S,
e: E
) -> TracersError
pub fn into_syn_error(self) -> Error
[src]
Converts this error type into a syn::Error
, preserving context from spans and elements if
any were given
pub fn into_compiler_error(self) -> TokenStream
[src]
Convert this error into a TokenStream
such that when the compiler consumes the token
stream it will evaluate to a compile error, with the span corresponding to whatever element
was used to report the error. For those error types that don't have a corresponding
element, the call site of the macro will be used
Trait Implementations
impl Send for TracersError
[src]
impl Sync for TracersError
[src]
impl<D: Display + Send + Sync + 'static> From<Context<D>> for TracersError
[src]
Implement conversion from regular errors into a TracersError, but only if the error has been
given a context message using the .context()
extension method provided by failure
fn from(failure: Context<D>) -> TracersError
[src]
impl PartialEq<TracersError> for TracersError
[src]
fn eq(&self, other: &TracersError) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Display for TracersError
[src]
impl Debug for TracersError
[src]
impl Fail for TracersError
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,