Struct custodian_password::ServerRegistration [−][src]
pub struct ServerRegistration { /* fields omitted */ }
Expand description
Holds the state of a registration process. See register
.
Implementations
Returns the Config
associated with this ServerRegistration
.
Returns the PublicKey
associated with this ServerRegistration
.
pub fn register(
config: &ServerConfig,
request: RegistrationRequest
) -> Result<(Self, RegistrationResponse)>
pub fn register(
config: &ServerConfig,
request: RegistrationRequest
) -> Result<(Self, RegistrationResponse)>
Starts the registration process. The returned RegistrationResponse
has to be send back to the client to drive the registration process. See
ClientRegistration::finish()
.
Errors
Error::Config
ifServerConfig
andRegistrationRequest
were not created with the sameConfig
Error::Opaque
on internal OPAQUE error
Finishes the registration process. The returned ServerFile
is
needed for the client to login. See ServerLogin::login()
.
Errors
Error::Config
if ServerConfig
and RegistrationRequest
were
not created with the same Config
.
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 ServerRegistration
impl Send for ServerRegistration
impl Sync for ServerRegistration
impl Unpin for ServerRegistration
impl UnwindSafe for ServerRegistration
Blanket Implementations
Mutably borrows from an owned value. Read more