metaverse_messages 0.3.0

packet definitions for the open metaverse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::packet::message::UIResponse;

#[derive(Serialize, Deserialize, Debug, Clone)]
/// A message to request a logout from the core
pub struct Logout {}

impl UIResponse {
    /// Implement UiEvent for ChatFromViewer to allow it to be sent from the UI to the core
    pub fn new_logout() -> Self {
        UIResponse::Logout(Logout {})
    }
}