pub enum AddDeviceStatus {
Waiting {
request: Option<AddDeviceRequest>,
},
Approved {
request: AddDeviceRequest,
},
Ended(AddDeviceEnd),
}Expand description
Where a pairing is (§13.2). The app offers approving and declining only
for a request that is Waiting, and ends the pairing when its screen
closes, whatever its status.
Variants§
Waiting
Waiting for a request, then with the checked request, for the person to compare its number and decide.
Fields
§
request: Option<AddDeviceRequest>The checked request, once one has come.
Approved
The person approved request: its handover is on its way to the
request’s place, or there, waiting for the new device to register.
Fields
§
request: AddDeviceRequestThe approved request.
Ended(AddDeviceEnd)
The pairing has ended, its marker in place or on its way; the app shows how until it ends the pairing and forgets it.
Trait Implementations§
Source§impl Clone for AddDeviceStatus
impl Clone for AddDeviceStatus
Source§fn clone(&self) -> AddDeviceStatus
fn clone(&self) -> AddDeviceStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddDeviceStatus
impl Debug for AddDeviceStatus
impl Eq for AddDeviceStatus
Source§impl PartialEq for AddDeviceStatus
impl PartialEq for AddDeviceStatus
impl StructuralPartialEq for AddDeviceStatus
Auto Trait Implementations§
impl Freeze for AddDeviceStatus
impl RefUnwindSafe for AddDeviceStatus
impl Send for AddDeviceStatus
impl Sync for AddDeviceStatus
impl Unpin for AddDeviceStatus
impl UnsafeUnpin for AddDeviceStatus
impl UnwindSafe for AddDeviceStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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.