Skip to main content

IntoStorage

Trait IntoStorage 

Source
pub trait IntoStorage {
    // Required method
    fn into_storage(self) -> Arc<dyn Storage> ⓘ;
}
Expand description

What the builders’ storage(..) setters take: a storage by value, an Arc of one, or an Arc<dyn Storage> (kept as is, so the agent’s storage is the same instance).

Required Methods§

Source

fn into_storage(self) -> Arc<dyn Storage> ⓘ

The storage, shared.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoStorage for Arc<dyn Storage>

Source§

impl<S: Storage> IntoStorage for Arc<S>

Implementors§