Enum email::backend::feature::BackendFeatureSource
source · pub enum BackendFeatureSource<C: BackendContext, F: ?Sized> {
None,
Context,
Backend(BackendFeature<C, F>),
}
Expand description
The backend feature source.
This enum is used by the backend builder to determine where a specific backend feature should be taken from.
Variants§
None
The feature should be disabled.
Context
The feature should be taken from the
super::BackendContextBuilder
.
Backend(BackendFeature<C, F>)
The feature should be taken from the
super::BackendBuilder
, using the given feature.
Trait Implementations§
source§impl<C, F> Clone for BackendFeatureSource<C, F>where
C: BackendContext,
F: ?Sized,
impl<C, F> Clone for BackendFeatureSource<C, F>where
C: BackendContext,
F: ?Sized,
source§impl<C: BackendContext, F: ?Sized> Default for BackendFeatureSource<C, F>
impl<C: BackendContext, F: ?Sized> Default for BackendFeatureSource<C, F>
source§fn default() -> BackendFeatureSource<C, F>
fn default() -> BackendFeatureSource<C, F>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C, F> Freeze for BackendFeatureSource<C, F>
impl<C, F> !RefUnwindSafe for BackendFeatureSource<C, F>
impl<C, F> Send for BackendFeatureSource<C, F>
impl<C, F> Sync for BackendFeatureSource<C, F>
impl<C, F> Unpin for BackendFeatureSource<C, F>
impl<C, F> !UnwindSafe for BackendFeatureSource<C, F>
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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
Mutably borrows from an owned value. Read more
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.