pub struct ClientKey { /* private fields */ }
Expand description
Key of the client
This struct contains the keys that are of interest to the user as they will allow to encrypt and decrypt data.
This key MUST NOT be sent to the server.
Implementations
sourceimpl ClientKey
impl ClientKey
sourcepub fn generate_server_key(&self) -> ServerKey
pub fn generate_server_key(&self) -> ServerKey
Generates a new ServerKeyChain
The ServerKeyChain
generated is meant to be used to initialize the global state
using crate::set_server_key.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ClientKey
impl<'de> Deserialize<'de> for ClientKey
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClientKey
impl Send for ClientKey
impl Sync for ClientKey
impl Unpin for ClientKey
impl UnwindSafe for ClientKey
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