pub enum PresenceTestEvent {
Presence,
Custom(JsonValue),
}
Expand description
Test events that can be added to the presence events.
Variants
Presence
Custom(JsonValue)
Implementations
sourceimpl PresenceTestEvent
impl PresenceTestEvent
sourcepub fn into_json_value(self) -> JsonValue
pub fn into_json_value(self) -> JsonValue
Get the JSON representation of this test event.
sourcepub fn into_raw_event(self) -> Raw<PresenceEvent>
pub fn into_raw_event(self) -> Raw<PresenceEvent>
Get the typed JSON representation of this test event.
Auto Trait Implementations
impl RefUnwindSafe for PresenceTestEvent
impl Send for PresenceTestEvent
impl Sync for PresenceTestEvent
impl Unpin for PresenceTestEvent
impl UnwindSafe for PresenceTestEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more