aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/cmd/commands/session_exit.rs
blob: 330f9bb36c7bd950b99fd0bedb894853050920e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only

use crate::{
  cmd::{constants::Command, extendable::Creatable},
  net::property_list::PropertyList,
};

pub struct SessionExit(pub PropertyList);
impl Creatable for SessionExit {
  fn create(&self) -> Vec<u8> {
    self.0.clone().as_bytes(Command::SessExit as i32, 0x01)
  }
}