pub(crate) enum CantSendReason {
SpecialChat,
DeviceChat,
ContactRequest,
ProtectionBroken,
ReadOnlyMailingList,
NotAMember,
SecurejoinWait,
}
Expand description
The reason why messages cannot be sent to the chat.
The reason is mainly for logging and displaying in debug REPL, thus not translated.
Variants§
SpecialChat
Special chat.
DeviceChat
The chat is a device chat.
ContactRequest
The chat is a contact request, it needs to be accepted before sending a message.
ProtectionBroken
The chat was protected, but now a new message came in which was not encrypted / signed correctly.
ReadOnlyMailingList
Mailing list without known List-Post header.
NotAMember
Not a member of the chat.
SecurejoinWait
Temporary state for 1:1 chats while SecureJoin is in progress, after a timeout sending messages (incl. unencrypted if we don’t yet know the contact’s pubkey) is allowed.
Trait Implementations§
source§impl Clone for CantSendReason
impl Clone for CantSendReason
source§fn clone(&self) -> CantSendReason
fn clone(&self) -> CantSendReason
Returns a copy of the value. Read more
1.0.0 · 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 CantSendReason
impl Debug for CantSendReason
source§impl Display for CantSendReason
impl Display for CantSendReason
source§impl PartialEq for CantSendReason
impl PartialEq for CantSendReason
impl Copy for CantSendReason
impl Eq for CantSendReason
impl StructuralPartialEq for CantSendReason
Auto Trait Implementations§
impl Freeze for CantSendReason
impl RefUnwindSafe for CantSendReason
impl Send for CantSendReason
impl Sync for CantSendReason
impl Unpin for CantSendReason
impl UnwindSafe for CantSendReason
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.