Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
impl GdbRemote {
fn send_reply(&mut self, reply: Reply) -> Result<(), ()> {
match self.remote.write(&reply.into_packet()) {
//...
}
}
}
impl Reply {
pub fn into_packet(mut self) -> Vec<u8> {
// ...
self.data
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment