pub struct DeviceJoinClient { /* private fields */ }Expand description
A joining device’s local half of the four-transfer admission exchange. The journal lives outside the incomplete store directory, so every method can be retried after process termination without losing its exact predecessor.
Implementations§
Source§impl DeviceJoinClient
impl DeviceJoinClient
pub fn new( invite_code: &str, join_request_code: &str, layout: StoreLayout, synced_tables: Vec<SyncedTable>, migrations: Vec<Migration>, expected_write_policy: WritePolicy, custom_s3_serial: Option<CustomS3Serial>, custom_s3_exact_slots: Option<CustomS3ExactSlots>, key_custody: KeyCustody, identity_custody: IdentityCustody, oauth_tokens: Option<OAuthTokens>, cloudkit_ops: Option<Arc<dyn CloudKitOps>>, clock: ClockRef, ) -> Result<Self, BootstrapError>
pub async fn prepare_provider_access_request( &self, offer: DeviceJoinOffer, ) -> Result<DeviceProviderAccessRequest, BootstrapError>
pub async fn prepare_registration_request( &self, approval: DeviceProviderAdmissionApproval, ) -> Result<DeviceRegistrationRequest, BootstrapError>
pub async fn bootstrap_pending_device( &self, bootstrap: ProviderReadyDeviceBootstrap, on_status: impl Fn(&str), cancel: &Receiver<bool>, ) -> Result<DeviceJoinReadiness, BootstrapError>
pub async fn complete_device_join( &self, activation: DeviceJoinActivation, on_status: impl Fn(&str), ) -> Result<Config, BootstrapError>
Auto Trait Implementations§
impl Freeze for DeviceJoinClient
impl !RefUnwindSafe for DeviceJoinClient
impl Send for DeviceJoinClient
impl Sync for DeviceJoinClient
impl Unpin for DeviceJoinClient
impl UnsafeUnpin for DeviceJoinClient
impl !UnwindSafe for DeviceJoinClient
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.