pub struct StoreDeviceJoinTransport<'store> { /* private fields */ }Implementations§
Source§impl<'store> StoreDeviceJoinTransport<'store>
impl<'store> StoreDeviceJoinTransport<'store>
pub async fn allocate_bundle( &self, offer: DeviceJoinOffer, ) -> Result<DeviceJoinOfferBundle, DeviceJoinTransportError>
pub async fn drive( &self, bundle: &DeviceJoinOfferBundle, policy: DeviceJoinApprovalPolicy<'_>, access_administrator: Option<&dyn DeviceProviderAccessAdministrator>, on_progress: &(dyn Fn(AdmittingDeviceJoinProgress) + Send + Sync), timing: DeviceJoinTransportTiming, ) -> Result<DeviceJoinDriveOutcome, DeviceJoinTransportError>
pub async fn abandon( &self, bundle: &DeviceJoinOfferBundle, ) -> Result<DeviceJoinAbandonment, DeviceJoinTransportError>
Sourcepub async fn abort(
&self,
bundle: &DeviceJoinOfferBundle,
) -> Result<(), DeviceJoinTransportError>
pub async fn abort( &self, bundle: &DeviceJoinOfferBundle, ) -> Result<(), DeviceJoinTransportError>
Give up on an attempt this device offered.
Only an attempt that has not reached its Store commit can be given up on: up to that point nothing is published about the joining device, so an abandonment is the whole story. Past it the device has been approved and holds storage access, and taking that back is member removal with a key rotation — not something a pairing window can do.
Auto Trait Implementations§
impl<'store> Freeze for StoreDeviceJoinTransport<'store>
impl<'store> !RefUnwindSafe for StoreDeviceJoinTransport<'store>
impl<'store> Send for StoreDeviceJoinTransport<'store>
impl<'store> Sync for StoreDeviceJoinTransport<'store>
impl<'store> Unpin for StoreDeviceJoinTransport<'store>
impl<'store> UnsafeUnpin for StoreDeviceJoinTransport<'store>
impl<'store> !UnwindSafe for StoreDeviceJoinTransport<'store>
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.