Struct nsl_duplex_d2::File[][src]

pub struct File {
    pub name: String,
    pub body: Vec<u8>,
}

Structure for files

Fields

Name of file

Contents of file

Methods

impl File
[src]

Create a new file object by copying name and body.

Create a new file object by parsing raw serial data.

Encode a file object to raw serial data.

Trait Implementations

impl Debug for File
[src]

Formats the value using the given formatter. Read more

impl PartialEq for File
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for File

impl Sync for File