pub struct PduRef<'buf> {
pub function_code: u8,
pub data: &'buf [u8],
}Expand description
Raw decoded PDU — function code + borrowed data slice.
This is the first thing produced by the decoder before dispatching to typed request/response structs.
Fields§
§function_code: u8Raw function code byte (may include 0x80 exception flag).
data: &'buf [u8]Remaining PDU bytes after the function code.
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for PduRef<'buf>
impl<'buf> RefUnwindSafe for PduRef<'buf>
impl<'buf> Send for PduRef<'buf>
impl<'buf> Sync for PduRef<'buf>
impl<'buf> Unpin for PduRef<'buf>
impl<'buf> UnsafeUnpin for PduRef<'buf>
impl<'buf> UnwindSafe for PduRef<'buf>
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