blob: e7c463671f0b1a445e2d4042c5089893ea2f508c [file] [log] [blame]
use super::prelude::*;
use crate::protocol::common::thread_id::ThreadId;
#[derive(Debug)]
pub struct T {
pub thread: ThreadId,
}
impl<'a> ParseCommand<'a> for T {
#[inline(always)]
fn from_packet(buf: PacketBuf<'a>) -> Option<Self> {
let body = buf.into_body();
Some(T {
thread: body.try_into().ok()?,
})
}
}