Struct poem::i18n::I18NArgs

source ·
pub struct I18NArgs<'a>(/* private fields */);
Available on crate feature i18n only.
Expand description

Parameters for formatting the message.

Implementations§

source§

impl<'a> I18NArgs<'a>

source

pub fn set<K, V>(self, key: K, value: V) -> Self
where K: Into<Cow<'a, str>>, V: Into<FluentValue<'a>>,

Append a KV pair to arguments.

Trait Implementations§

source§

impl<'a> Default for I18NArgs<'a>

source§

fn default() -> I18NArgs<'a>

Returns the “default value” for a type. Read more
source§

impl<'a, K1, V1, K2, V2, K3, V3, K4, V4, K5, V5, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K1, V1), (K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K1: Into<Cow<'a, str>>, V1: Into<FluentValue<'a>>, K2: Into<Cow<'a, str>>, V2: Into<FluentValue<'a>>, K3: Into<Cow<'a, str>>, V3: Into<FluentValue<'a>>, K4: Into<Cow<'a, str>>, V4: Into<FluentValue<'a>>, K5: Into<Cow<'a, str>>, V5: Into<FluentValue<'a>>, K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K1, V1), (K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K1, V1), (K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K13, V13, K14, V14, K15, V15, K16, V16> From<((K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K14, V14, K15, V15, K16, V16> From<((K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K14, V14), (K15, V15), (K16, V16)): ((K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K15, V15, K16, V16> From<((K15, V15), (K16, V16))> for I18NArgs<'a>
where K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from(((K15, V15), (K16, V16)): ((K15, V15), (K16, V16))) -> Self

Converts to this type from the input type.
source§

impl<'a, K16, V16> From<((K16, V16),)> for I18NArgs<'a>
where K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from(((K16, V16)): ((K16, V16),)) -> Self

Converts to this type from the input type.
source§

impl<'a, K2, V2, K3, V3, K4, V4, K5, V5, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K2: Into<Cow<'a, str>>, V2: Into<FluentValue<'a>>, K3: Into<Cow<'a, str>>, V3: Into<FluentValue<'a>>, K4: Into<Cow<'a, str>>, V4: Into<FluentValue<'a>>, K5: Into<Cow<'a, str>>, V5: Into<FluentValue<'a>>, K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K2, V2), (K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K3, V3, K4, V4, K5, V5, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K3: Into<Cow<'a, str>>, V3: Into<FluentValue<'a>>, K4: Into<Cow<'a, str>>, V4: Into<FluentValue<'a>>, K5: Into<Cow<'a, str>>, V5: Into<FluentValue<'a>>, K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K3, V3), (K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K4, V4, K5, V5, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K4: Into<Cow<'a, str>>, V4: Into<FluentValue<'a>>, K5: Into<Cow<'a, str>>, V5: Into<FluentValue<'a>>, K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K4, V4), (K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K5, V5, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K5: Into<Cow<'a, str>>, V5: Into<FluentValue<'a>>, K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K5, V5), (K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K6, V6, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K6: Into<Cow<'a, str>>, V6: Into<FluentValue<'a>>, K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K6, V6), (K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K7, V7, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K7: Into<Cow<'a, str>>, V7: Into<FluentValue<'a>>, K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K7, V7), (K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K8, V8, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K8: Into<Cow<'a, str>>, V8: Into<FluentValue<'a>>, K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K8, V8), (K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K9, V9, K10, V10, K11, V11, K12, V12, K13, V13, K14, V14, K15, V15, K16, V16> From<((K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16))> for I18NArgs<'a>
where K9: Into<Cow<'a, str>>, V9: Into<FluentValue<'a>>, K10: Into<Cow<'a, str>>, V10: Into<FluentValue<'a>>, K11: Into<Cow<'a, str>>, V11: Into<FluentValue<'a>>, K12: Into<Cow<'a, str>>, V12: Into<FluentValue<'a>>, K13: Into<Cow<'a, str>>, V13: Into<FluentValue<'a>>, K14: Into<Cow<'a, str>>, V14: Into<FluentValue<'a>>, K15: Into<Cow<'a, str>>, V15: Into<FluentValue<'a>>, K16: Into<Cow<'a, str>>, V16: Into<FluentValue<'a>>,

source§

fn from( ((K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)): ((K9, V9), (K10, V10), (K11, V11), (K12, V12), (K13, V13), (K14, V14), (K15, V15), (K16, V16)) ) -> Self

Converts to this type from the input type.
source§

impl<'a, K, V, R> From<HashMap<K, V, R>> for I18NArgs<'a>
where K: Into<Cow<'a, str>>, V: Into<FluentValue<'a>>,

source§

fn from(map: HashMap<K, V, R>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for I18NArgs<'a>

§

impl<'a> !RefUnwindSafe for I18NArgs<'a>

§

impl<'a> Send for I18NArgs<'a>

§

impl<'a> !Sync for I18NArgs<'a>

§

impl<'a> Unpin for I18NArgs<'a>

§

impl<'a> !UnwindSafe for I18NArgs<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> TowerCompatExt for T

source§

fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>
where ResBody: Body + Send + Sync + 'static, ResBody::Data: Into<Bytes> + Send + 'static, ResBody::Error: StdError + Send + Sync + 'static, Err: Into<Error>, Self: Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static, Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,

Available on crate feature tower-compat only.
Converts a tower service to a poem endpoint.
source§

impl<L> TowerLayerCompatExt for L

source§

fn compat(self) -> TowerCompatMiddleware<Self>
where Self: Sized,

Available on crate feature tower-compat only.
Converts a tower layer to a poem middleware.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more