pub struct ArduinoCoreClient<T> { /* private fields */ }
Expand description
The main Arduino Platform Service
Implementations§
Source§impl<T> ArduinoCoreClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> ArduinoCoreClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn init(
&mut self,
request: impl IntoRequest<InitReq>,
) -> Result<Response<Streaming<InitResp>>, Status>
pub async fn init( &mut self, request: impl IntoRequest<InitReq>, ) -> Result<Response<Streaming<InitResp>>, Status>
Start a new instance of the Arduino Core Service
Sourcepub async fn destroy(
&mut self,
request: impl IntoRequest<DestroyReq>,
) -> Result<Response<DestroyResp>, Status>
pub async fn destroy( &mut self, request: impl IntoRequest<DestroyReq>, ) -> Result<Response<DestroyResp>, Status>
Destroy an instance of the Arduino Core Service
Sourcepub async fn rescan(
&mut self,
request: impl IntoRequest<RescanReq>,
) -> Result<Response<RescanResp>, Status>
pub async fn rescan( &mut self, request: impl IntoRequest<RescanReq>, ) -> Result<Response<RescanResp>, Status>
Rescan instance of the Arduino Core Service
Sourcepub async fn update_index(
&mut self,
request: impl IntoRequest<UpdateIndexReq>,
) -> Result<Response<Streaming<UpdateIndexResp>>, Status>
pub async fn update_index( &mut self, request: impl IntoRequest<UpdateIndexReq>, ) -> Result<Response<Streaming<UpdateIndexResp>>, Status>
Update package index of the Arduino Core Service
Sourcepub async fn update_libraries_index(
&mut self,
request: impl IntoRequest<UpdateLibrariesIndexReq>,
) -> Result<Response<Streaming<UpdateLibrariesIndexResp>>, Status>
pub async fn update_libraries_index( &mut self, request: impl IntoRequest<UpdateLibrariesIndexReq>, ) -> Result<Response<Streaming<UpdateLibrariesIndexResp>>, Status>
Update libraries index
Sourcepub async fn update_core_libraries_index(
&mut self,
request: impl IntoRequest<UpdateCoreLibrariesIndexReq>,
) -> Result<Response<Streaming<UpdateCoreLibrariesIndexResp>>, Status>
pub async fn update_core_libraries_index( &mut self, request: impl IntoRequest<UpdateCoreLibrariesIndexReq>, ) -> Result<Response<Streaming<UpdateCoreLibrariesIndexResp>>, Status>
Update packages indexes for both Cores and Libraries
Sourcepub async fn outdated(
&mut self,
request: impl IntoRequest<OutdatedReq>,
) -> Result<Response<OutdatedResp>, Status>
pub async fn outdated( &mut self, request: impl IntoRequest<OutdatedReq>, ) -> Result<Response<OutdatedResp>, Status>
Outdated returns a message with a list of outdated Cores and Libraries
Sourcepub async fn upgrade(
&mut self,
request: impl IntoRequest<UpgradeReq>,
) -> Result<Response<Streaming<UpgradeResp>>, Status>
pub async fn upgrade( &mut self, request: impl IntoRequest<UpgradeReq>, ) -> Result<Response<Streaming<UpgradeResp>>, Status>
Upgrade both Cores and Libraries
Sourcepub async fn version(
&mut self,
request: impl IntoRequest<VersionReq>,
) -> Result<Response<VersionResp>, Status>
pub async fn version( &mut self, request: impl IntoRequest<VersionReq>, ) -> Result<Response<VersionResp>, Status>
Get the version of Arduino CLI in use.
Sourcepub async fn load_sketch(
&mut self,
request: impl IntoRequest<LoadSketchReq>,
) -> Result<Response<LoadSketchResp>, Status>
pub async fn load_sketch( &mut self, request: impl IntoRequest<LoadSketchReq>, ) -> Result<Response<LoadSketchResp>, Status>
Returns all files composing a Sketch
Sourcepub async fn archive_sketch(
&mut self,
request: impl IntoRequest<ArchiveSketchReq>,
) -> Result<Response<ArchiveSketchResp>, Status>
pub async fn archive_sketch( &mut self, request: impl IntoRequest<ArchiveSketchReq>, ) -> Result<Response<ArchiveSketchResp>, Status>
Creates a zip file containing all files of specified Sketch
Sourcepub async fn board_details(
&mut self,
request: impl IntoRequest<BoardDetailsReq>,
) -> Result<Response<BoardDetailsResp>, Status>
pub async fn board_details( &mut self, request: impl IntoRequest<BoardDetailsReq>, ) -> Result<Response<BoardDetailsResp>, Status>
Requests details about a board
Sourcepub async fn board_attach(
&mut self,
request: impl IntoRequest<BoardAttachReq>,
) -> Result<Response<Streaming<BoardAttachResp>>, Status>
pub async fn board_attach( &mut self, request: impl IntoRequest<BoardAttachReq>, ) -> Result<Response<Streaming<BoardAttachResp>>, Status>
Attach a board to a sketch. When the fqbn
field of a request is not
provided, the FQBN of the attached board will be used.
Sourcepub async fn board_list(
&mut self,
request: impl IntoRequest<BoardListReq>,
) -> Result<Response<BoardListResp>, Status>
pub async fn board_list( &mut self, request: impl IntoRequest<BoardListReq>, ) -> Result<Response<BoardListResp>, Status>
List the boards currently connected to the computer.
Sourcepub async fn board_list_all(
&mut self,
request: impl IntoRequest<BoardListAllReq>,
) -> Result<Response<BoardListAllResp>, Status>
pub async fn board_list_all( &mut self, request: impl IntoRequest<BoardListAllReq>, ) -> Result<Response<BoardListAllResp>, Status>
List all the boards provided by installed platforms.
Sourcepub async fn board_list_watch(
&mut self,
request: impl IntoStreamingRequest<Message = BoardListWatchReq>,
) -> Result<Response<Streaming<BoardListWatchResp>>, Status>
pub async fn board_list_watch( &mut self, request: impl IntoStreamingRequest<Message = BoardListWatchReq>, ) -> Result<Response<Streaming<BoardListWatchResp>>, Status>
List boards connection and disconnected events.
Sourcepub async fn compile(
&mut self,
request: impl IntoRequest<CompileReq>,
) -> Result<Response<Streaming<CompileResp>>, Status>
pub async fn compile( &mut self, request: impl IntoRequest<CompileReq>, ) -> Result<Response<Streaming<CompileResp>>, Status>
Compile an Arduino sketch.
Sourcepub async fn platform_install(
&mut self,
request: impl IntoRequest<PlatformInstallReq>,
) -> Result<Response<Streaming<PlatformInstallResp>>, Status>
pub async fn platform_install( &mut self, request: impl IntoRequest<PlatformInstallReq>, ) -> Result<Response<Streaming<PlatformInstallResp>>, Status>
Download and install a platform and its tool dependencies.
Sourcepub async fn platform_download(
&mut self,
request: impl IntoRequest<PlatformDownloadReq>,
) -> Result<Response<Streaming<PlatformDownloadResp>>, Status>
pub async fn platform_download( &mut self, request: impl IntoRequest<PlatformDownloadReq>, ) -> Result<Response<Streaming<PlatformDownloadResp>>, Status>
Download a platform and its tool dependencies to the staging/packages
subdirectory of the data directory.
Sourcepub async fn platform_uninstall(
&mut self,
request: impl IntoRequest<PlatformUninstallReq>,
) -> Result<Response<Streaming<PlatformUninstallResp>>, Status>
pub async fn platform_uninstall( &mut self, request: impl IntoRequest<PlatformUninstallReq>, ) -> Result<Response<Streaming<PlatformUninstallResp>>, Status>
Uninstall a platform as well as its tool dependencies that are not used by other installed platforms.
Sourcepub async fn platform_upgrade(
&mut self,
request: impl IntoRequest<PlatformUpgradeReq>,
) -> Result<Response<Streaming<PlatformUpgradeResp>>, Status>
pub async fn platform_upgrade( &mut self, request: impl IntoRequest<PlatformUpgradeReq>, ) -> Result<Response<Streaming<PlatformUpgradeResp>>, Status>
Upgrade an installed platform to the latest version.
Sourcepub async fn upload(
&mut self,
request: impl IntoRequest<UploadReq>,
) -> Result<Response<Streaming<UploadResp>>, Status>
pub async fn upload( &mut self, request: impl IntoRequest<UploadReq>, ) -> Result<Response<Streaming<UploadResp>>, Status>
Upload a compiled sketch to a board.
Sourcepub async fn upload_using_programmer(
&mut self,
request: impl IntoRequest<UploadUsingProgrammerReq>,
) -> Result<Response<Streaming<UploadUsingProgrammerResp>>, Status>
pub async fn upload_using_programmer( &mut self, request: impl IntoRequest<UploadUsingProgrammerReq>, ) -> Result<Response<Streaming<UploadUsingProgrammerResp>>, Status>
Upload a compiled sketch to a board using a programmer.
Sourcepub async fn list_programmers_available_for_upload(
&mut self,
request: impl IntoRequest<ListProgrammersAvailableForUploadReq>,
) -> Result<Response<ListProgrammersAvailableForUploadResp>, Status>
pub async fn list_programmers_available_for_upload( &mut self, request: impl IntoRequest<ListProgrammersAvailableForUploadReq>, ) -> Result<Response<ListProgrammersAvailableForUploadResp>, Status>
List programmers available for a board.
Sourcepub async fn burn_bootloader(
&mut self,
request: impl IntoRequest<BurnBootloaderReq>,
) -> Result<Response<Streaming<BurnBootloaderResp>>, Status>
pub async fn burn_bootloader( &mut self, request: impl IntoRequest<BurnBootloaderReq>, ) -> Result<Response<Streaming<BurnBootloaderResp>>, Status>
Burn bootloader to a board.
Sourcepub async fn platform_search(
&mut self,
request: impl IntoRequest<PlatformSearchReq>,
) -> Result<Response<PlatformSearchResp>, Status>
pub async fn platform_search( &mut self, request: impl IntoRequest<PlatformSearchReq>, ) -> Result<Response<PlatformSearchResp>, Status>
Search for a platform in the platforms indexes.
Sourcepub async fn platform_list(
&mut self,
request: impl IntoRequest<PlatformListReq>,
) -> Result<Response<PlatformListResp>, Status>
pub async fn platform_list( &mut self, request: impl IntoRequest<PlatformListReq>, ) -> Result<Response<PlatformListResp>, Status>
List all installed platforms.
Sourcepub async fn library_download(
&mut self,
request: impl IntoRequest<LibraryDownloadReq>,
) -> Result<Response<Streaming<LibraryDownloadResp>>, Status>
pub async fn library_download( &mut self, request: impl IntoRequest<LibraryDownloadReq>, ) -> Result<Response<Streaming<LibraryDownloadResp>>, Status>
Download the archive file of an Arduino library in the libraries index to the staging directory.
Sourcepub async fn library_install(
&mut self,
request: impl IntoRequest<LibraryInstallReq>,
) -> Result<Response<Streaming<LibraryInstallResp>>, Status>
pub async fn library_install( &mut self, request: impl IntoRequest<LibraryInstallReq>, ) -> Result<Response<Streaming<LibraryInstallResp>>, Status>
Download and install an Arduino library from the libraries index.
Sourcepub async fn zip_library_install(
&mut self,
request: impl IntoRequest<ZipLibraryInstallReq>,
) -> Result<Response<Streaming<ZipLibraryInstallResp>>, Status>
pub async fn zip_library_install( &mut self, request: impl IntoRequest<ZipLibraryInstallReq>, ) -> Result<Response<Streaming<ZipLibraryInstallResp>>, Status>
Install a library from a Zip File
Sourcepub async fn git_library_install(
&mut self,
request: impl IntoRequest<GitLibraryInstallReq>,
) -> Result<Response<Streaming<GitLibraryInstallResp>>, Status>
pub async fn git_library_install( &mut self, request: impl IntoRequest<GitLibraryInstallReq>, ) -> Result<Response<Streaming<GitLibraryInstallResp>>, Status>
Download and install a library from a git url
Sourcepub async fn library_uninstall(
&mut self,
request: impl IntoRequest<LibraryUninstallReq>,
) -> Result<Response<Streaming<LibraryUninstallResp>>, Status>
pub async fn library_uninstall( &mut self, request: impl IntoRequest<LibraryUninstallReq>, ) -> Result<Response<Streaming<LibraryUninstallResp>>, Status>
Uninstall an Arduino library.
Sourcepub async fn library_upgrade_all(
&mut self,
request: impl IntoRequest<LibraryUpgradeAllReq>,
) -> Result<Response<Streaming<LibraryUpgradeAllResp>>, Status>
pub async fn library_upgrade_all( &mut self, request: impl IntoRequest<LibraryUpgradeAllReq>, ) -> Result<Response<Streaming<LibraryUpgradeAllResp>>, Status>
Upgrade all installed Arduino libraries to the newest version available.
Sourcepub async fn library_resolve_dependencies(
&mut self,
request: impl IntoRequest<LibraryResolveDependenciesReq>,
) -> Result<Response<LibraryResolveDependenciesResp>, Status>
pub async fn library_resolve_dependencies( &mut self, request: impl IntoRequest<LibraryResolveDependenciesReq>, ) -> Result<Response<LibraryResolveDependenciesResp>, Status>
List the recursive dependencies of a library, as defined by the depends
field of the library.properties files.
Sourcepub async fn library_search(
&mut self,
request: impl IntoRequest<LibrarySearchReq>,
) -> Result<Response<LibrarySearchResp>, Status>
pub async fn library_search( &mut self, request: impl IntoRequest<LibrarySearchReq>, ) -> Result<Response<LibrarySearchResp>, Status>
Search the Arduino libraries index for libraries.
Sourcepub async fn library_list(
&mut self,
request: impl IntoRequest<LibraryListReq>,
) -> Result<Response<LibraryListResp>, Status>
pub async fn library_list( &mut self, request: impl IntoRequest<LibraryListReq>, ) -> Result<Response<LibraryListResp>, Status>
List the installed libraries.
Trait Implementations§
Source§impl<T: Clone> Clone for ArduinoCoreClient<T>
impl<T: Clone> Clone for ArduinoCoreClient<T>
Auto Trait Implementations§
impl<T> Freeze for ArduinoCoreClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ArduinoCoreClient<T>
impl<T> Send for ArduinoCoreClient<T>where
T: Send,
impl<T> Sync for ArduinoCoreClient<T>where
T: Sync,
impl<T> Unpin for ArduinoCoreClient<T>where
T: Unpin,
impl<T> !UnwindSafe for ArduinoCoreClient<T>
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