pub struct UploadReq {
pub instance: Option<Instance>,
pub fqbn: String,
pub sketch_path: String,
pub port: String,
pub verbose: bool,
pub verify: bool,
pub import_file: String,
pub import_dir: String,
pub programmer: String,
}
Fields§
§instance: Option<Instance>
Arduino Core Service instance from the Init
response.
fqbn: String
Fully qualified board name of the target board (e.g., arduino:avr:uno
).
If this field is not defined, the FQBN of the board attached to the sketch
via the BoardAttach
method is used.
sketch_path: String
Path where the sketch to be uploaded is stored. Unless the import_file
field is defined, the compiled binary is assumed to be at the location and
filename under this path where it is saved by the Compile
method.
port: String
The port of the board.
verbose: bool
Whether to turn on verbose output during the upload.
verify: bool
After upload, verify that the contents of the memory on the board match the uploaded binary.
import_file: String
When import_file
is specified, it overrides the import_dir
and sketch_path
params.
import_dir: String
Custom path to a directory containing compiled files. When import_dir
is
not specified, the standard build directory under sketch_path
is used.
programmer: String
The programmer to use for upload. If set an UploadUsingProgrammer is triggered instead of a normal upload. The UploadUsingProgrammer call may also be used for explicit error check.
Trait Implementations§
Source§impl Message for UploadReq
impl Message for UploadReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.impl StructuralPartialEq for UploadReq
Auto Trait Implementations§
impl Freeze for UploadReq
impl RefUnwindSafe for UploadReq
impl Send for UploadReq
impl Sync for UploadReq
impl Unpin for UploadReq
impl UnwindSafe for UploadReq
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request