Enum deltachat::securejoin::HandshakeMessage
source · pub(crate) enum HandshakeMessage {
Done,
Ignore,
Propagate,
}
Expand description
What to do with a Secure-Join handshake message after it was handled.
This status is returned to receive_imf
which will use it to decide what to do
next with this incoming setup-contact/secure-join handshake message.
Variants§
Done
The message has been fully handled and should be removed/delete.
This removes the message both locally and on the IMAP server.
Ignore
The message should be ignored/hidden, but not removed/deleted.
This leaves it on the IMAP server. It means other devices on this account can
receive and potentially process this message as well. This is useful for example
when the other device is running the protocol and has the relevant QR-code
information while this device does not have the joiner state (BobState
).
Propagate
The message should be further processed by incoming message handling.
This may for example result in a group being created if it is a message which added
us to a group (a vg-member-added
message).
Trait Implementations§
source§impl Debug for HandshakeMessage
impl Debug for HandshakeMessage
source§impl PartialEq for HandshakeMessage
impl PartialEq for HandshakeMessage
impl Eq for HandshakeMessage
impl StructuralPartialEq for HandshakeMessage
Auto Trait Implementations§
impl Freeze for HandshakeMessage
impl RefUnwindSafe for HandshakeMessage
impl Send for HandshakeMessage
impl Sync for HandshakeMessage
impl Unpin for HandshakeMessage
impl UnwindSafe for HandshakeMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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.