aws_smithy_types::config_bag

Trait Store

Source
pub trait Store:
    Sized
    + Send
    + Sync
    + 'static {
    type ReturnedType<'a>: Send + Sync;
    type StoredType: Send + Sync + Debug;

    // Required method
    fn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>;
}
Expand description

Trait defining how types can be stored and loaded from the config bag

Required Associated Types§

Source

type ReturnedType<'a>: Send + Sync

Denote the returned type when loaded from the config bag

Source

type StoredType: Send + Sync + Debug

Denote the stored type when stored into the config bag

Required Methods§

Source

fn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>

Create a returned type from an iterable of items

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§