pub struct ReplyPacket {
pub id: u32,
pub error_code: u16,
pub data: Vec<u8>,
}Fields§
§id: u32§error_code: u16§data: Vec<u8>Implementations§
Source§impl ReplyPacket
impl ReplyPacket
Sourcepub fn decode(buf: &[u8]) -> JdwpResult<Self>
pub fn decode(buf: &[u8]) -> JdwpResult<Self>
pub const fn is_error(&self) -> bool
Sourcepub fn check_error(&self) -> JdwpResult<()>
pub fn check_error(&self) -> JdwpResult<()>
Return an error if the reply carries a non-zero JDWP error code.
§Errors
Returns a JdwpError::JdwpErrorCode when the reply’s error code is non-zero.
pub fn data(&self) -> &[u8] ⓘ
pub fn error_message(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ReplyPacket
impl Clone for ReplyPacket
Source§fn clone(&self) -> ReplyPacket
fn clone(&self) -> ReplyPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReplyPacket
impl RefUnwindSafe for ReplyPacket
impl Send for ReplyPacket
impl Sync for ReplyPacket
impl Unpin for ReplyPacket
impl UnsafeUnpin for ReplyPacket
impl UnwindSafe for ReplyPacket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more