pub trait Stateful: Clone {
fn boxed(self: Box<Self>) -> Box<Self> { ... }
fn state(self) -> Self
where
Self: Sized,
{ ... }
fn threaded(self: Arc<Self>) -> Arc<Self> { ... }
}pub trait Stateful: Clone {
fn boxed(self: Box<Self>) -> Box<Self> { ... }
fn state(self) -> Self
where
Self: Sized,
{ ... }
fn threaded(self: Arc<Self>) -> Arc<Self> { ... }
}