benthic_protocol 0.3.3

Benthic protocol, an intermediate layer between metaverse protocols and client programs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::messages::ui::ui_messages::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 {})
    }
}