Skip to main content

Event

Enum Event 

Source
#[repr(usize)]
pub enum Event {
Show 49 variants ClientCreated = 0, ClientDropped = 1, ClientClosed = 2, AssociateName = 3, CreatedDM = 4, CreatedGroup = 5, AddedMembers = 6, ReceivedWelcome = 7, MLSReceivedStagedCommit = 8, MLSProcessedStagedCommit = 9, MLSReceivedApplicationMessage = 10, StreamOpened = 11, StreamClosed = 12, GroupSyncStart = 13, GroupSyncAttempt = 14, GroupSyncFinished = 15, GroupSyncGroupInactive = 16, GroupSyncIntentRetry = 17, GroupSyncIntentErrored = 18, GroupSyncPublishFailed = 19, GroupSyncApplicationMessagePublishSuccess = 20, GroupSyncCommitPublishSuccess = 21, GroupSyncStagedCommitPresent = 22, GroupCursorUpdate = 23, UpdatedGroupMembership = 24, DeviceSyncInitializing = 25, DeviceSyncInitializingFinished = 26, DeviceSyncNoPrimarySyncGroup = 27, DeviceSyncCreatedPrimarySyncGroup = 28, DeviceSyncSentSyncRequest = 29, DeviceSyncProcessingMessages = 30, DeviceSyncMessageProcessingError = 31, DeviceSyncArchiveProcessingStart = 32, DeviceSyncV1Archive = 33, DeviceSyncArchiveNotRequested = 34, DeviceSyncArchiveDownloading = 35, DeviceSyncPayloadDownloadFailure = 36, DeviceSyncArchiveImportStart = 37, DeviceSyncArchiveImportSuccess = 38, DeviceSyncArchiveImportFailure = 39, DeviceSyncRequestAlreadyAcknowledged = 40, DeviceSyncRequestAcknowledged = 41, DeviceSyncResponseTaskScheduled = 42, DeviceSyncArchiveUploadStart = 43, DeviceSyncArchiveUploadFailure = 44, DeviceSyncArchiveUploadComplete = 45, DeviceSyncNoServerUrl = 46, EnableProposalsStart = 47, EnableProposalsCompleted = 48,
}

Variants§

§

ClientCreated = 0

Client created.

§

ClientDropped = 1

Client dropped.

§

ClientClosed = 2

Client cleanly closed via Client::close.

§

AssociateName = 3

Associating name with installation.

§

CreatedDM = 4

DM created.

§

CreatedGroup = 5

Group created.

§

AddedMembers = 6

Added members to group.

§

ReceivedWelcome = 7

Received new group from welcome.

§

MLSReceivedStagedCommit = 8

Received staged commit. Merging and clearing any pending commits.

§

MLSProcessedStagedCommit = 9

Processed staged commit.

§

MLSReceivedApplicationMessage = 10

Received application message.

§

StreamOpened = 11

Stream started.

§

StreamClosed = 12

Stream closed.

§

GroupSyncStart = 13

Begin syncing group.

§

GroupSyncAttempt = 14

Syncing group.

§

GroupSyncFinished = 15

Group sync complete.

§

GroupSyncGroupInactive = 16

Attempted to sync on an inactive group.

§

GroupSyncIntentRetry = 17

Intent failed to sync and will be retried.

§

GroupSyncIntentErrored = 18

Intent was found to be in error after attempting to sync. The summary is logged once by GroupSyncFinished; this only marks which intent errored.

§

GroupSyncPublishFailed = 19

Attempt to publish intent failed.

§

GroupSyncApplicationMessagePublishSuccess = 20

Application message published successfully.

§

GroupSyncCommitPublishSuccess = 21

Commit published successfully.

§

GroupSyncStagedCommitPresent = 22

Commit sent. Staged commit is present. Stopping further publishes for this round.

§

GroupCursorUpdate = 23

Updating group cursor.

§

UpdatedGroupMembership = 24

Updated group membership.

§

DeviceSyncInitializing = 25

Device Sync worker initializing.

§

DeviceSyncInitializingFinished = 26

Device sync initialized.

§

DeviceSyncNoPrimarySyncGroup = 27

No primary sync group found.

§

DeviceSyncCreatedPrimarySyncGroup = 28

Created primary sync group.

§

DeviceSyncSentSyncRequest = 29

Sent a sync request.

§

DeviceSyncProcessingMessages = 30

Processing new sync message.

§

DeviceSyncMessageProcessingError = 31

Failed to process device sync message.

§

DeviceSyncArchiveProcessingStart = 32

Processing sync archive.

§

DeviceSyncV1Archive = 33

Received a V1 sync payload. V1 is no longer supported. Ignoring.

§

DeviceSyncArchiveNotRequested = 34

Received a sync archive message, but it was not requested by this instalaltion. Skipping.

§

DeviceSyncArchiveDownloading = 35

Downloading sync archive.

§

DeviceSyncPayloadDownloadFailure = 36

Sync archive download failure.

§

DeviceSyncArchiveImportStart = 37

Beginning archive import.

§

DeviceSyncArchiveImportSuccess = 38

Finished sync archive import.

§

DeviceSyncArchiveImportFailure = 39

Archive import failed.

§

DeviceSyncRequestAlreadyAcknowledged = 40

Attempted to acknowledge a sync request, but it was already acknowledged by another installation.

§

DeviceSyncRequestAcknowledged = 41

Acknowledged sync request.

§

DeviceSyncResponseTaskScheduled = 42

Scheduled task to respond to sync request.

§

DeviceSyncArchiveUploadStart = 43

Sending sync archive.

§

DeviceSyncArchiveUploadFailure = 44

Failed to send sync archive.

§

DeviceSyncArchiveUploadComplete = 45

Archive upload complete.

§

DeviceSyncNoServerUrl = 46

Cannot send sync archive. No server_url present.

§

EnableProposalsStart = 47

enable_proposals started — pre-flight passed, about to publish the legacy-GMM bump (step A) and/or bootstrap commit (step B).

§

EnableProposalsCompleted = 48

enable_proposals completed. already_migrated = true means the call was a no-op fast-path; false means a bootstrap commit was actually published.

Implementations§

Source§

impl Event

Source

pub const METADATA: [EventMetadata; 49]

Metadata for all variants of this enum, indexed by variant discriminant.

Source

pub const fn metadata(&self) -> &'static EventMetadata

Returns the metadata for this event variant.

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Display for Event

Source§

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

Formats the value using the given formatter. 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 (const: unstable) · 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 Copy for Event

Source§

impl Eq for Event

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 UnsafeUnpin 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
§

impl<T> Classify for T

§

type Classified = T

§

fn classify(self) -> T

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
§

impl<T> Declassify for T

§

type Declassified = T

§

fn declassify(self) -> T

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

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

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> ToStringFallible for T
where T: Display,

§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

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<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSync for T
where T: Sync + ?Sized,