WithFallbackAnnotations

Trait WithFallbackAnnotations 

Source
pub trait WithFallbackAnnotations<'own, ErrorT, InnerT> {
    // Required method
    fn with_fallback_annotations(
        &'own mut self,
        annotations: Option<&'own Annotations>,
    ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>;

    // Provided methods
    fn with_fallback_annotations_from_field<StructT>(
        &'own mut self,
        struct: &'own StructT,
        name: &str,
    ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
       where StructT: AnnotatedStruct { ... }
    fn with_fallback_annotations_from_struct<StructT>(
        &'own mut self,
        struct: &'own StructT,
    ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
       where StructT: AnnotatedStruct { ... }
}
Expand description

With fallback annotations.

Required Methods§

Source

fn with_fallback_annotations( &'own mut self, annotations: Option<&'own Annotations>, ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>

With fallback annotations.

Provided Methods§

Source

fn with_fallback_annotations_from_field<StructT>( &'own mut self, struct: &'own StructT, name: &str, ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
where StructT: AnnotatedStruct,

With fallback annotations from field.

Source

fn with_fallback_annotations_from_struct<StructT>( &'own mut self, struct: &'own StructT, ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
where StructT: AnnotatedStruct,

With fallback annotations from struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'own, ErrorT, ErrorReceiverT> WithFallbackAnnotations<'own, ErrorT, ErrorReceiverT> for ErrorReceiverT
where ErrorT: Annotated, ErrorReceiverT: ErrorReceiver<ErrorT>,