pub enum WechatEvent {
ContextObserved(WechatContext),
Message(IncomingMessage),
CursorAdvanced {
account_key: String,
cursor: String,
},
AuthSessionExpired {
account_key: String,
},
UserInteractionRequested {
account_key: String,
user_id: Option<String>,
reason: UserInteractionReason,
},
}Expand description
Lifecycle events emitted by the WeChat iLink client.
Variants§
ContextObserved(WechatContext)
A new context token was observed from an incoming wire message.
Message(IncomingMessage)
An incoming parsed message.
CursorAdvanced
The polling cursor advanced after processing a batch of messages.
AuthSessionExpired
The current auth session has expired and re-login is required.
UserInteractionRequested
The SDK observed that user interaction would refresh WeChat state.
The SDK does not send a reminder. Applications decide whether to notify users and what wording/channel to use.
Trait Implementations§
Source§impl Clone for WechatEvent
impl Clone for WechatEvent
Source§fn clone(&self) -> WechatEvent
fn clone(&self) -> WechatEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WechatEvent
impl RefUnwindSafe for WechatEvent
impl Send for WechatEvent
impl Sync for WechatEvent
impl Unpin for WechatEvent
impl UnsafeUnpin for WechatEvent
impl UnwindSafe for WechatEvent
Blanket Implementations§
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