Sign in
android
/
platform
/
external
/
rust
/
crates
/
gdbstub
/
ab3436da907c95fc4a38b97b0f817cac0460589a
/
.
/
src
/
protocol
/
commands
/
_p.rs
blob: 08e13b51c580b7e9b4270409e03aca72e7719070 [
file
] [
log
] [
blame
]
use
super
::
prelude
::*;
#[
derive
(
Debug
)]
pub
struct
p
{
pub
reg_id
:
usize
,
}
impl
<
'a> ParseCommand<'
a
>
for
p
{
fn
from_packet
(
buf
:
PacketBuf
<
'
a
>)
->
Option
<
Self
>
{
let
reg_id
=
decode_hex
(
buf
.
into_body
()).
ok
()?;
Some
(
p
{
reg_id
})
}
}