pub trait Store {
type Data: Push;
// Required methods
fn create_data(&self, context: &Context) -> Result<Self::Data>;
fn update_data(
&self,
context: &Context,
data: &mut Self::Data,
) -> Result<()>;
}
Expand description
Something that could store its data on a device.
Required Associated Types§
Required Methods§
Sourcefn create_data(&self, context: &Context) -> Result<Self::Data>
fn create_data(&self, context: &Context) -> Result<Self::Data>
Creates device data.