[][src]Trait etrade::Store

pub trait Store {
    pub fn put(
        &self,
        namespace: impl Into<String> + Send,
        key: impl Into<String> + Send,
        value: impl Into<SecUtf8> + Send
    ) -> Result<()>;
pub fn del(
        &self,
        namespace: impl AsRef<str> + Send,
        key: impl AsRef<str> + Send
    ) -> Result<()>;
pub fn get(
        &self,
        namespace: impl AsRef<str> + Send,
        key: impl AsRef<str> + Send
    ) -> Result<Option<SecUtf8>>; }

Required methods

pub fn put(
    &self,
    namespace: impl Into<String> + Send,
    key: impl Into<String> + Send,
    value: impl Into<SecUtf8> + Send
) -> Result<()>
[src]

pub fn del(
    &self,
    namespace: impl AsRef<str> + Send,
    key: impl AsRef<str> + Send
) -> Result<()>
[src]

pub fn get(
    &self,
    namespace: impl AsRef<str> + Send,
    key: impl AsRef<str> + Send
) -> Result<Option<SecUtf8>>
[src]

Loading content...

Implementors

impl Store for Memstore[src]

Loading content...