Struct custodian_password::ClientRegistration [−][src]
pub struct ClientRegistration { /* fields omitted */ }
Expand description
Holds the state of a registration process. See register
.
Implementations
Returns the ClientConfig
associated with this
ClientRegistration
.
Starts the registration process. The returned RegistrationRequest
has to be send to the server to drive the registration process. See
ServerRegistration::register()
.
Errors
Error::Opaque
on internal OPAQUE error.
pub fn finish(
self,
response: RegistrationResponse
) -> Result<(ClientFile, RegistrationFinalization, ExportKey)>
pub fn finish(
self,
response: RegistrationResponse
) -> Result<(ClientFile, RegistrationFinalization, ExportKey)>
Finishes the registration process. The returned
RegistrationFinalization
has to be send back to the server to finish
the registration process. See
ServerRegistration::finish()
.
ClientFile
can be used to validate the server during login. See
ClientLogin::login()
.
ExportKey
can be used to encrypt data and store it safely on
the server. See ExportKey
for more details.
Errors
Error::Config
ifClientRegistration
andRegistrationResponse
were not created with the sameConfig
Error::InvalidServer
if the public key given inregister()
does not match the servers public keyError::Opaque
on internal OPAQUE error
Trait Implementations
fn 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ClientRegistration
impl Send for ClientRegistration
impl Sync for ClientRegistration
impl Unpin for ClientRegistration
impl UnwindSafe for ClientRegistration
Blanket Implementations
Mutably borrows from an owned value. Read more