[][src]Trait teaclave_types::Storable

pub trait Storable: Serialize + for<'de> Deserialize<'de> {
    fn key_prefix() -> &'static str;
fn uuid(&self) -> Uuid; fn key_string(&self) -> String { ... }
fn key(&self) -> Vec<u8> { ... }
fn match_prefix(key: &str) -> bool { ... }
fn to_vec(&self) -> Result<Vec<u8>> { ... }
fn from_slice(bytes: &[u8]) -> Result<Self> { ... }
fn external_id(&self) -> ExternalID { ... } }

Required methods

fn key_prefix() -> &'static str

fn uuid(&self) -> Uuid

Loading content...

Provided methods

fn key_string(&self) -> String

fn key(&self) -> Vec<u8>

fn match_prefix(key: &str) -> bool

fn to_vec(&self) -> Result<Vec<u8>>

fn from_slice(bytes: &[u8]) -> Result<Self>

fn external_id(&self) -> ExternalID

Loading content...

Implementors

impl Storable for Function[src]

impl Storable for StagedTask[src]

impl Storable for TaskState[src]

impl Storable for TeaclaveInputFile[src]

impl Storable for TeaclaveOutputFile[src]

Loading content...