pub struct ManagerProxy { /* private fields */ }
Implementations§
source§impl ManagerProxy
impl ManagerProxy
sourcepub fn take_event_stream(&self) -> ManagerEventStream
pub fn take_event_stream(&self) -> ManagerEventStream
Get a Stream of events from the remote end of the Manager protocol
Panics
Panics if the event stream was already taken.
sourcepub fn add_credential(
&self,
params: AddCredentialParams
) -> QueryResponseFut<ManagerAddCredentialResult>
pub fn add_credential( &self, params: AddCredentialParams ) -> QueryResponseFut<ManagerAddCredentialResult>
Adds a low entropy credential into the system.
params
see AddCredentialParams
.
Success returns a label for the newly provisioned credential. This
acts as a identifier which is used to check the credential or remove it
later on. This should be stored by the caller.
sourcepub fn remove_credential(
&self,
label: u64
) -> QueryResponseFut<ManagerRemoveCredentialResult>
pub fn remove_credential( &self, label: u64 ) -> QueryResponseFut<ManagerRemoveCredentialResult>
Removes a credential with the provided label.
On Failure: INVALID_LABEL if a label is provided which is not in the tree.
sourcepub fn check_credential(
&self,
params: CheckCredentialParams
) -> QueryResponseFut<ManagerCheckCredentialResult>
pub fn check_credential( &self, params: CheckCredentialParams ) -> QueryResponseFut<ManagerCheckCredentialResult>
Attempts to authenticate a credential. It checks whether the le_secret
for a given label
is correct.
On Success:
See CheckCredentialResponse
.
On Failure:
INVALID_LABEL if an invalid label was entered.
TOO_MANY_ATTEMPTS if too many incorrect attempts are made defined by the
delay_schedule
set on AddCredential.
INVALID_SECRET for an incorrect authentication attempt.
CORRUPT_METADATA for invalid credential metadata.
Trait Implementations§
source§impl Clone for ManagerProxy
impl Clone for ManagerProxy
source§fn clone(&self) -> ManagerProxy
fn clone(&self) -> ManagerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ManagerProxy
impl Debug for ManagerProxy
source§impl ManagerProxyInterface for ManagerProxy
impl ManagerProxyInterface for ManagerProxy
type AddCredentialResponseFut = QueryResponseFut<Result<u64, CredentialError>>
fn add_credential( &self, params: AddCredentialParams ) -> Self::AddCredentialResponseFut
type RemoveCredentialResponseFut = QueryResponseFut<Result<(), CredentialError>>
fn remove_credential(&self, label: u64) -> Self::RemoveCredentialResponseFut
type CheckCredentialResponseFut = QueryResponseFut<Result<CheckCredentialResponse, CredentialError>>
fn check_credential( &self, params: CheckCredentialParams ) -> Self::CheckCredentialResponseFut
source§impl Proxy for ManagerProxy
impl Proxy for ManagerProxy
§type Protocol = ManagerMarker
type Protocol = ManagerMarker
Proxy
controls.