pub struct FileAck<'a> {
pub file_ok: bool,
pub file: &'a [u8],
}Expand description
FileAck() (Table 66): app → host — delivers the requested file (or signals
it is unavailable via file_ok = false).
Fields§
§file_ok: boolFileOK — true if the file is available; false otherwise.
file: &'a [u8]FileBytes — the file payload (opaque; empty when file_ok == false).
Trait Implementations§
impl<'a> Eq for FileAck<'a>
Source§impl<'a> PartialEq for FileAck<'a>
impl<'a> PartialEq for FileAck<'a>
Source§impl Serialize for FileAck<'_>
impl Serialize for FileAck<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for FileAck<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileAck<'a>
impl<'a> RefUnwindSafe for FileAck<'a>
impl<'a> Send for FileAck<'a>
impl<'a> Sync for FileAck<'a>
impl<'a> Unpin for FileAck<'a>
impl<'a> UnsafeUnpin for FileAck<'a>
impl<'a> UnwindSafe for FileAck<'a>
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