pub enum SasState {
Created,
Started,
Accepted,
KeysExchanged {
emojis: Option<Vec<i32>>,
decimals: Vec<i32>,
},
Confirmed,
Done,
Cancelled {
cancel_info: CancelInfo,
},
}
Expand description
An Enum describing the state the SAS verification is in.
Variants§
Created
The verification has been created, the protocols that should be used have been proposed to the other party.
Started
The verification has been started, the other party proposed the protocols that should be used and that can be accepted.
Accepted
The verification has been accepted and both sides agreed to a set of protocols that will be used for the verification process.
KeysExchanged
The public keys have been exchanged and the short auth string can be presented to the user.
Fields
Confirmed
The verification process has been confirmed from our side, we’re waiting for the other side to confirm as well.
Done
The verification process has been successfully concluded.
Cancelled
The verification process has been cancelled.
Fields
cancel_info: CancelInfo
Information about the reason of the cancellation.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for SasState
impl<UT> ConvertError<UT> for SasState
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl<UT> FfiConverter<UT> for SasState
impl<UT> FfiConverter<UT> for SasState
Source§const TYPE_ID_META: MetadataBuffer = _
const TYPE_ID_META: MetadataBuffer = _
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<SasState> for SasState
impl From<SasState> for SasState
Source§fn from(s: RustSasState) -> Self
fn from(s: RustSasState) -> Self
Source§impl<UT> LiftReturn<UT> for SasState
impl<UT> LiftReturn<UT> for SasState
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> LowerError<UT> for SasState
impl<UT> LowerError<UT> for SasState
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for SasState
impl<UT> LowerReturn<UT> for SasState
Source§type ReturnType = <SasState as Lower<UT>>::FfiType
type ReturnType = <SasState as Lower<UT>>::FfiType
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
Source§impl<UT> TypeId<UT> for SasState
impl<UT> TypeId<UT> for SasState
const TYPE_ID_META: MetadataBuffer = _
Auto Trait Implementations§
impl Freeze for SasState
impl RefUnwindSafe for SasState
impl Send for SasState
impl Sync for SasState
impl Unpin for SasState
impl UnwindSafe for SasState
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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