pub struct E2eeClient { /* private fields */ }Expand description
The E2eeClient: one device’s identity and trust, for preparing joins.
Implementations§
Source§impl E2eeClient
impl E2eeClient
Sourcepub fn new(identity: DeviceIdentity, trust: TrustAnchors) -> E2eeClient
pub fn new(identity: DeviceIdentity, trust: TrustAnchors) -> E2eeClient
A client for an enrolled device.
Sourcepub fn with_config(self, cfg: E2eeConfig) -> E2eeClient
pub fn with_config(self, cfg: E2eeConfig) -> E2eeClient
With local configuration (tests).
Sourcepub fn set_config(&mut self, cfg: E2eeConfig)
pub fn set_config(&mut self, cfg: E2eeConfig)
Replaces the local configuration.
Sourcepub fn prepare_key_package(
&mut self,
scope: CallScope,
now: UnixMs,
) -> Result<(PendingKp, SignRequest), IdentityError>
pub fn prepare_key_package( &mut self, scope: CallScope, now: UnixMs, ) -> Result<(PendingKp, SignRequest), IdentityError>
Offline (~1 ms native): a fresh leaf key and the device-signature request. Call when the
channel view opens or a ring arrives. Scope has no empty form.
Sourcepub fn trust_mut(&mut self) -> &mut TrustAnchors
pub fn trust_mut(&mut self) -> &mut TrustAnchors
The trust anchors (a revoked dispatch extends the CRL; a fresh READY refreshes them).
Sourcepub fn trust(&self) -> &TrustAnchors
pub fn trust(&self) -> &TrustAnchors
The trust anchors.
Sourcepub fn identity(&self) -> &DeviceIdentity
pub fn identity(&self) -> &DeviceIdentity
The device identity.
Sourcepub fn config(&self) -> &E2eeConfig
pub fn config(&self) -> &E2eeConfig
The local configuration.
Trait Implementations§
Auto Trait Implementations§
impl Forget for E2eeClient
impl Freeze for E2eeClient
impl Move for E2eeClient
impl RefUnwindSafe for E2eeClient
impl Send for E2eeClient
impl Sync for E2eeClient
impl Unpin for E2eeClient
impl UnsafeUnpin for E2eeClient
impl UnwindSafe for E2eeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more