pub enum InviteStage {
Granting,
Waiting {
code: String,
request: Option<JoinRequest>,
},
Approving {
code: String,
request: JoinRequest,
binding: OperationId,
},
}Expand description
Where one of this device’s open invites is (§13.2).
Variants§
Granting
The app’s write made the invite. A pass checks it against the history it catches up with and grants its storage access, and then it shows its code. A check that refuses it, or a failed grant, is its pending record under its operation; cancelling ends it.
Waiting
The code is shown, and the request, once one has arrived and been checked, waits for the app to approve or decline it.
Fields
request: Option<JoinRequest>The checked request, once one has arrived.
Approving
Approval of this request has begun, and finishes without the app:
approving, declining or cancelling the invite fail with
InvitationChanged. The approval is the app’s own, and
coven_operations lists its binding until the app acknowledges the
outcome.
Fields
request: JoinRequestThe request being approved.
binding: OperationIdThe operation that claims the request’s copies and binds its pair.
Trait Implementations§
Source§impl Clone for InviteStage
impl Clone for InviteStage
Source§fn clone(&self) -> InviteStage
fn clone(&self) -> InviteStage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InviteStage
impl Debug for InviteStage
Source§impl PartialEq for InviteStage
impl PartialEq for InviteStage
impl Eq for InviteStage
impl StructuralPartialEq for InviteStage
Auto Trait Implementations§
impl Freeze for InviteStage
impl RefUnwindSafe for InviteStage
impl Send for InviteStage
impl Sync for InviteStage
impl Unpin for InviteStage
impl UnsafeUnpin for InviteStage
impl UnwindSafe for InviteStage
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
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
§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
key and return true if they are equal.§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>
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>
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