[−][src]Enum tracers_build::TracersError
Variants
Fields of InvalidProvider
message: String
syn_error: Error
Fields of SynError
message: String
syn_error: Error
Fields of InvalidCallExpression
message: String
syn_error: Error
Fields of OtherError
message: String
error: Error
Fields of CodeGenerationError
message: String
Fields of NativeCodeGenerationError
message: String
error: Error
Methods
impl TracersError
[src]
pub fn invalid_provider<T>(message: impl AsRef<str>, element: T) -> TracersError where
T: ToTokens,
[src]
T: ToTokens,
pub fn syn_error(message: impl AsRef<str>, e: Error) -> TracersError
[src]
pub fn syn_like_error<T, U>(message: U, tokens: T) -> TracersError where
T: ToTokens,
U: Display,
[src]
T: ToTokens,
U: Display,
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: Error) -> TracersError
[src]
pub fn invalid_call_expression<T>(
message: impl AsRef<str>,
element: T
) -> TracersError where
T: ToTokens,
[src]
message: impl AsRef<str>,
element: T
) -> TracersError where
T: ToTokens,
pub fn other_error<D>(e: Context<D>) -> TracersError where
D: 'static + Send + Sync + Display,
[src]
D: 'static + Send + Sync + Display,
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, E>(
trait_name: T,
e: E
) -> TracersError where
E: Into<Error> + Display,
T: AsRef<str>,
[src]
trait_name: T,
e: E
) -> TracersError where
E: Into<Error> + Display,
T: AsRef<str>,
pub fn code_generation_error<S>(message: S) -> TracersError where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn native_code_generation_error<S, E>(message: S, e: E) -> TracersError where
E: Into<Error> + Display,
S: AsRef<str>,
[src]
E: Into<Error> + Display,
S: AsRef<str>,
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 Fail for TracersError
[src]
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,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl Send for TracersError
[src]
impl<D> From<Context<D>> for TracersError where
D: 'static + Send + Sync + Display,
[src]
D: 'static + Send + Sync + Display,
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 Sync for 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 Debug for TracersError
[src]
impl Display 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<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn backtrace(&self) -> Option<&Backtrace>
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl<T> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,