pub struct WriteFileRecordRequest<'buf> {
pub byte_count: u8,
pub sub_requests: &'buf [u8],
}Expand description
FC 0x15 — Write File Record request.
Contains one or more sub-request records packed in sub_requests.
Fields§
§byte_count: u8Total byte count of the sub-request data that follows.
sub_requests: &'buf [u8]Raw sub-request data.
Implementations§
Source§impl<'buf> WriteFileRecordRequest<'buf>
impl<'buf> WriteFileRecordRequest<'buf>
Sourcepub fn decode(data: &'buf [u8]) -> Result<Self, DecodeError>
pub fn decode(data: &'buf [u8]) -> Result<Self, DecodeError>
Decode from PDU data after the function code byte.
§Errors
Returns DecodeError::Truncated if data is too short.
Returns DecodeError::ByteCountMismatch if the declared byte count does not
match the remaining data length.
Trait Implementations§
Source§impl<'buf> Clone for WriteFileRecordRequest<'buf>
impl<'buf> Clone for WriteFileRecordRequest<'buf>
Source§fn clone(&self) -> WriteFileRecordRequest<'buf>
fn clone(&self) -> WriteFileRecordRequest<'buf>
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 moreimpl<'buf> Copy for WriteFileRecordRequest<'buf>
Source§impl<'buf> Debug for WriteFileRecordRequest<'buf>
impl<'buf> Debug for WriteFileRecordRequest<'buf>
Source§impl Encode for WriteFileRecordRequest<'_>
impl Encode for WriteFileRecordRequest<'_>
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).
impl<'buf> Eq for WriteFileRecordRequest<'buf>
Source§impl<'buf> PartialEq for WriteFileRecordRequest<'buf>
impl<'buf> PartialEq for WriteFileRecordRequest<'buf>
Source§fn eq(&self, other: &WriteFileRecordRequest<'buf>) -> bool
fn eq(&self, other: &WriteFileRecordRequest<'buf>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'buf> StructuralPartialEq for WriteFileRecordRequest<'buf>
Auto Trait Implementations§
impl<'buf> Freeze for WriteFileRecordRequest<'buf>
impl<'buf> RefUnwindSafe for WriteFileRecordRequest<'buf>
impl<'buf> Send for WriteFileRecordRequest<'buf>
impl<'buf> Sync for WriteFileRecordRequest<'buf>
impl<'buf> Unpin for WriteFileRecordRequest<'buf>
impl<'buf> UnsafeUnpin for WriteFileRecordRequest<'buf>
impl<'buf> UnwindSafe for WriteFileRecordRequest<'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