pub struct WriteFileRecordResponse<'buf> {
pub byte_count: u8,
pub data: &'buf [u8],
}Expand description
Response to a Write File Record request (FC 0x15).
Fields§
§byte_count: u8Total number of data bytes that follow.
data: &'buf [u8]Raw sub-request response data.
Implementations§
Source§impl<'buf> WriteFileRecordResponse<'buf>
impl<'buf> WriteFileRecordResponse<'buf>
Trait Implementations§
Source§impl<'buf> Debug for WriteFileRecordResponse<'buf>
impl<'buf> Debug for WriteFileRecordResponse<'buf>
Source§impl Encode for WriteFileRecordResponse<'_>
impl Encode for WriteFileRecordResponse<'_>
Source§fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
Write the full PDU (function code + data) into
buf. Read moreSource§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Total encoded length in bytes (including the function code byte).
Auto Trait Implementations§
impl<'buf> Freeze for WriteFileRecordResponse<'buf>
impl<'buf> RefUnwindSafe for WriteFileRecordResponse<'buf>
impl<'buf> Send for WriteFileRecordResponse<'buf>
impl<'buf> Sync for WriteFileRecordResponse<'buf>
impl<'buf> Unpin for WriteFileRecordResponse<'buf>
impl<'buf> UnsafeUnpin for WriteFileRecordResponse<'buf>
impl<'buf> UnwindSafe for WriteFileRecordResponse<'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