pub struct ClientKeystore<P> where
P: Platform, { /* private fields */ }
Implementations
sourceimpl<'a, P: Platform> ClientKeystore<P>
impl<'a, P: Platform> ClientKeystore<P>
pub fn new(client_id: ClientId, rng: ChaCha8Rng, store: P::S) -> Self
sourceimpl<P: Platform> ClientKeystore<P>
impl<P: Platform> ClientKeystore<P>
Trait Implementations
sourceimpl<P: Platform> Keystore for ClientKeystore<P>
impl<P: Platform> Keystore for ClientKeystore<P>
sourcefn delete_all(&self, location: Location) -> Result<usize>
fn delete_all(&self, location: Location) -> Result<usize>
TODO: This uses the predicate “filename.len() >= 4” Be more principled :)
fn rng(&mut self) -> &mut ChaCha8Rng
fn store_key(
&mut self,
location: Location,
secrecy: Secrecy,
info: impl Into<Info>,
material: &[u8]
) -> Result<KeyId>
fn exists_key(&self, secrecy: Secrecy, kind: Option<Kind>, id: &KeyId) -> bool
sourcefn key_info(&self, secrecy: Secrecy, id: &KeyId) -> Option<Info>
fn key_info(&self, secrecy: Secrecy, id: &KeyId) -> Option<Info>
Return Header of key, if it exists
fn delete_key(&self, id: &KeyId) -> bool
fn load_key(
&self,
secrecy: Secrecy,
kind: Option<Kind>,
id: &KeyId
) -> Result<Key>
fn overwrite_key(
&self,
location: Location,
secrecy: Secrecy,
kind: Kind,
id: &KeyId,
material: &[u8]
) -> Result<()>
fn location(&self, secrecy: Secrecy, id: &KeyId) -> Option<Location>
Auto Trait Implementations
impl<P> RefUnwindSafe for ClientKeystore<P> where
<P as Platform>::S: RefUnwindSafe,
impl<P> Send for ClientKeystore<P> where
<P as Platform>::S: Send,
impl<P> Sync for ClientKeystore<P> where
<P as Platform>::S: Sync,
impl<P> Unpin for ClientKeystore<P> where
<P as Platform>::S: Unpin,
impl<P> UnwindSafe for ClientKeystore<P> where
<P as Platform>::S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more