pub enum Event {
Show 14 variants
Dashboard {
agent: Registration,
revision: u64,
board: Option<Board>,
},
UnregisterChat {
agent: Uuid,
generation: u64,
},
Direct {
address: Address,
},
Directory {
envelope: Box<Envelope>,
},
NodeInvite {
envelope: Box<Envelope>,
},
Presence {
challenge: Uuid,
reply: bool,
},
OwnerPreparation {
envelope: Box<Envelope>,
},
Mesh {
envelope: MeshEnvelope,
},
ConfigurationRequest {
request_id: Uuid,
edit: Box<ConfigurationEdit>,
},
ConfigurationResult {
request_id: Uuid,
fingerprint: String,
result: EditResult,
decided_by: Option<String>,
},
Registration {
agent: Registration,
},
ConversationActivity {
agent: Registration,
timestamp: Option<i64>,
message_dates: Option<MessageDates>,
},
Message {
sender: Box<Registration>,
request_id: String,
message: Message,
attachments: Vec<PrivateAttachment>,
},
Receipt {
message_id: String,
delivered: bool,
},
}Variants§
Dashboard
UnregisterChat
Direct
Directory
NodeInvite
Presence
OwnerPreparation
Mesh
Fields
§
envelope: MeshEnvelopeConfigurationRequest
ConfigurationResult
Registration
Fields
§
agent: RegistrationConversationActivity
Message
Receipt
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Eventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SignedOwnerTransition>: Freeze,
PhantomData<Widget>: Freeze,
*const LeafNode<TransportAddr, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(TransportAddr, SetValZST)>>: Freeze,
PhantomData<RelayUrl>: Freeze,
PhantomData<HelperRegistration>: Freeze,
*const Envelope is !null: Freeze,
PhantomData<Envelope>: Freeze,
*const Envelope is !null: Freeze,
PhantomData<Envelope>: Freeze,
*const Envelope is !null: Freeze,
PhantomData<Envelope>: Freeze,
*const ConfigurationEdit is !null: Freeze,
PhantomData<ConfigurationEdit>: Freeze,
*const Registration is !null: Freeze,
PhantomData<Registration>: Freeze,
PhantomData<FilePart>: Freeze,
PhantomData<FileDescriptor>: Freeze,
PhantomData<PrivateAttachment>: Freeze,
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Eventwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, TransportAddr, SetValZST, LeafOrInternal>: Send,
BoxRaw<(TransportAddr, SetValZST)>: Send,
Arc<Url>: Send,
BoxRaw<Envelope>: Send,
BoxRaw<Envelope>: Send,
BoxRaw<Envelope>: Send,
BoxRaw<ConfigurationEdit>: Send,
BoxRaw<Registration>: Send,
impl Sync for Eventwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, TransportAddr, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(TransportAddr, SetValZST)>: Sync,
Arc<Url>: Sync,
BoxRaw<Envelope>: Sync,
BoxRaw<Envelope>: Sync,
BoxRaw<Envelope>: Sync,
BoxRaw<ConfigurationEdit>: Sync,
BoxRaw<Registration>: Sync,
impl Unpin for Eventwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<TransportAddr, SetValZST> is !null: Unpin,
Box<(TransportAddr, SetValZST)>: Unpin,
Arc<Url>: Unpin,
Box<Envelope>: Unpin,
Box<Envelope>: Unpin,
Box<Envelope>: Unpin,
Box<ConfigurationEdit>: Unpin,
Box<Registration>: Unpin,
impl UnsafeUnpin for Eventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SignedOwnerTransition>: UnsafeUnpin,
PhantomData<Widget>: UnsafeUnpin,
*const LeafNode<TransportAddr, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(TransportAddr, SetValZST)>>: UnsafeUnpin,
PhantomData<RelayUrl>: UnsafeUnpin,
PhantomData<HelperRegistration>: UnsafeUnpin,
*const Envelope is !null: UnsafeUnpin,
PhantomData<Envelope>: UnsafeUnpin,
*const Envelope is !null: UnsafeUnpin,
PhantomData<Envelope>: UnsafeUnpin,
*const Envelope is !null: UnsafeUnpin,
PhantomData<Envelope>: UnsafeUnpin,
*const ConfigurationEdit is !null: UnsafeUnpin,
PhantomData<ConfigurationEdit>: UnsafeUnpin,
*const Registration is !null: UnsafeUnpin,
PhantomData<Registration>: UnsafeUnpin,
PhantomData<FilePart>: UnsafeUnpin,
PhantomData<FileDescriptor>: UnsafeUnpin,
PhantomData<PrivateAttachment>: UnsafeUnpin,
impl UnwindSafe for Eventwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<TransportAddr, SetValZST>: UnwindSafe,
Arc<Url>: UnwindSafe,
BoxRaw<Envelope>: UnwindSafe,
BoxRaw<Envelope>: UnwindSafe,
BoxRaw<Envelope>: UnwindSafe,
BoxRaw<ConfigurationEdit>: UnwindSafe,
BoxRaw<Registration>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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 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> ⓘ
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