Event

Enum Event 

Source
#[non_exhaustive]
pub enum Event {
Show 46 variants ContactConnected(ContactConnected), ContactUpdated(ContactUpdated), ContactDeletedByContact(ContactDeletedByContact), ReceivedContactRequest(ReceivedContactRequest), NewMemberContactReceivedInv(NewMemberContactReceivedInv), ContactSndReady(ContactSndReady), NewChatItems(NewChatItems), ChatItemReaction(ChatItemReaction), ChatItemsDeleted(ChatItemsDeleted), ChatItemUpdated(ChatItemUpdated), GroupChatItemsDeleted(GroupChatItemsDeleted), ChatItemsStatusesUpdated(ChatItemsStatusesUpdated), ReceivedGroupInvitation(ReceivedGroupInvitation), UserJoinedGroup(UserJoinedGroup), GroupUpdated(GroupUpdated), JoinedGroupMember(JoinedGroupMember), MemberRole(MemberRole), DeletedMember(DeletedMember), LeftMember(LeftMember), DeletedMemberUser(DeletedMemberUser), GroupDeleted(GroupDeleted), ConnectedToGroupMember(ConnectedToGroupMember), MemberAcceptedByOther(MemberAcceptedByOther), MemberBlockedForAll(MemberBlockedForAll), GroupMemberUpdated(GroupMemberUpdated), RcvFileDescrReady(RcvFileDescrReady), RcvFileComplete(RcvFileComplete), SndFileCompleteXftp(SndFileCompleteXftp), RcvFileStart(RcvFileStart), RcvFileSndCancelled(RcvFileSndCancelled), RcvFileAccepted(RcvFileAccepted), RcvFileError(RcvFileError), RcvFileWarning(RcvFileWarning), SndFileError(SndFileError), SndFileWarning(SndFileWarning), AcceptingContactRequest(AcceptingContactRequest), AcceptingBusinessRequest(AcceptingBusinessRequest), ContactConnecting(ContactConnecting), BusinessLinkConnecting(BusinessLinkConnecting), JoinedGroupMemberConnecting(JoinedGroupMemberConnecting), SentGroupInvitation(SentGroupInvitation), GroupLinkConnecting(GroupLinkConnecting), MessageError(MessageError), ChatError(ChatError), ChatErrors(ChatErrors), Undocumented(BTreeMap<String, JsonObject>),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ContactConnected(ContactConnected)

Contact connection events

§

ContactUpdated(ContactUpdated)

Contact connection events

§

ContactDeletedByContact(ContactDeletedByContact)

Contact connection events

§

ReceivedContactRequest(ReceivedContactRequest)

Contact connection events

§

NewMemberContactReceivedInv(NewMemberContactReceivedInv)

Contact connection events

§

ContactSndReady(ContactSndReady)

Contact connection events

§

NewChatItems(NewChatItems)

Message events

§

ChatItemReaction(ChatItemReaction)

Message events

§

ChatItemsDeleted(ChatItemsDeleted)

Message events

§

ChatItemUpdated(ChatItemUpdated)

Message events

§

GroupChatItemsDeleted(GroupChatItemsDeleted)

Message events

§

ChatItemsStatusesUpdated(ChatItemsStatusesUpdated)

Message events

§

ReceivedGroupInvitation(ReceivedGroupInvitation)

Group events

§

UserJoinedGroup(UserJoinedGroup)

Group events

§

GroupUpdated(GroupUpdated)

Group events

§

JoinedGroupMember(JoinedGroupMember)

Group events

§

MemberRole(MemberRole)

Group events

§

DeletedMember(DeletedMember)

Group events

§

LeftMember(LeftMember)

Group events

§

DeletedMemberUser(DeletedMemberUser)

Group events

§

GroupDeleted(GroupDeleted)

Group events

§

ConnectedToGroupMember(ConnectedToGroupMember)

Group events

§

MemberAcceptedByOther(MemberAcceptedByOther)

Group events

§

MemberBlockedForAll(MemberBlockedForAll)

Group events

§

GroupMemberUpdated(GroupMemberUpdated)

Group events

§

RcvFileDescrReady(RcvFileDescrReady)

File events

§

RcvFileComplete(RcvFileComplete)

File events

§

SndFileCompleteXftp(SndFileCompleteXftp)

File events

§

RcvFileStart(RcvFileStart)

File events

§

RcvFileSndCancelled(RcvFileSndCancelled)

File events

§

RcvFileAccepted(RcvFileAccepted)

File events

§

RcvFileError(RcvFileError)

File events

§

RcvFileWarning(RcvFileWarning)

File events

§

SndFileError(SndFileError)

File events

§

SndFileWarning(SndFileWarning)

File events

§

AcceptingContactRequest(AcceptingContactRequest)

Connection progress events

§

AcceptingBusinessRequest(AcceptingBusinessRequest)

Connection progress events

§

ContactConnecting(ContactConnecting)

Connection progress events

§

BusinessLinkConnecting(BusinessLinkConnecting)

Connection progress events

§

JoinedGroupMemberConnecting(JoinedGroupMemberConnecting)

Connection progress events

§

SentGroupInvitation(SentGroupInvitation)

Connection progress events

§

GroupLinkConnecting(GroupLinkConnecting)

Connection progress events

§

MessageError(MessageError)

Error events

§

ChatError(ChatError)

Error events

§

ChatErrors(ChatErrors)

Error events

§

Undocumented(BTreeMap<String, JsonObject>)

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Event

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Event) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Event

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,