[][src]Struct arduino_cli_client::commands::arduino_core_client::ArduinoCoreClient

pub struct ArduinoCoreClient<T> { /* fields omitted */ }

The main Arduino Platform Service

Implementations

impl ArduinoCoreClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

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
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn init<'_>(
    &'_ mut self,
    request: impl IntoRequest<InitReq>
) -> Result<Response<Streaming<InitResp>>, Status>
[src]

Start a new instance of the Arduino Core Service

pub async fn destroy<'_>(
    &'_ mut self,
    request: impl IntoRequest<DestroyReq>
) -> Result<Response<DestroyResp>, Status>
[src]

Destroy an instance of the Arduino Core Service

pub async fn rescan<'_>(
    &'_ mut self,
    request: impl IntoRequest<RescanReq>
) -> Result<Response<RescanResp>, Status>
[src]

Rescan instance of the Arduino Core Service

pub async fn update_index<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateIndexReq>
) -> Result<Response<Streaming<UpdateIndexResp>>, Status>
[src]

Update package index of the Arduino Core Service

pub async fn update_libraries_index<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateLibrariesIndexReq>
) -> Result<Response<Streaming<UpdateLibrariesIndexResp>>, Status>
[src]

Update libraries index

pub async fn update_core_libraries_index<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateCoreLibrariesIndexReq>
) -> Result<Response<Streaming<UpdateCoreLibrariesIndexResp>>, Status>
[src]

Update packages indexes for both Cores and Libraries

pub async fn outdated<'_>(
    &'_ mut self,
    request: impl IntoRequest<OutdatedReq>
) -> Result<Response<OutdatedResp>, Status>
[src]

Outdated returns a message with a list of outdated Cores and Libraries

pub async fn upgrade<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpgradeReq>
) -> Result<Response<Streaming<UpgradeResp>>, Status>
[src]

Upgrade both Cores and Libraries

pub async fn version<'_>(
    &'_ mut self,
    request: impl IntoRequest<VersionReq>
) -> Result<Response<VersionResp>, Status>
[src]

Get the version of Arduino CLI in use.

pub async fn load_sketch<'_>(
    &'_ mut self,
    request: impl IntoRequest<LoadSketchReq>
) -> Result<Response<LoadSketchResp>, Status>
[src]

Returns all files composing a Sketch

pub async fn archive_sketch<'_>(
    &'_ mut self,
    request: impl IntoRequest<ArchiveSketchReq>
) -> Result<Response<ArchiveSketchResp>, Status>
[src]

Creates a zip file containing all files of specified Sketch

pub async fn board_details<'_>(
    &'_ mut self,
    request: impl IntoRequest<BoardDetailsReq>
) -> Result<Response<BoardDetailsResp>, Status>
[src]

Requests details about a board

pub async fn board_attach<'_>(
    &'_ mut self,
    request: impl IntoRequest<BoardAttachReq>
) -> Result<Response<Streaming<BoardAttachResp>>, Status>
[src]

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.

pub async fn board_list<'_>(
    &'_ mut self,
    request: impl IntoRequest<BoardListReq>
) -> Result<Response<BoardListResp>, Status>
[src]

List the boards currently connected to the computer.

pub async fn board_list_all<'_>(
    &'_ mut self,
    request: impl IntoRequest<BoardListAllReq>
) -> Result<Response<BoardListAllResp>, Status>
[src]

List all the boards provided by installed platforms.

pub async fn board_list_watch<'_>(
    &'_ mut self,
    request: impl IntoStreamingRequest<Message = BoardListWatchReq>
) -> Result<Response<Streaming<BoardListWatchResp>>, Status>
[src]

List boards connection and disconnected events.

pub async fn compile<'_>(
    &'_ mut self,
    request: impl IntoRequest<CompileReq>
) -> Result<Response<Streaming<CompileResp>>, Status>
[src]

Compile an Arduino sketch.

pub async fn platform_install<'_>(
    &'_ mut self,
    request: impl IntoRequest<PlatformInstallReq>
) -> Result<Response<Streaming<PlatformInstallResp>>, Status>
[src]

Download and install a platform and its tool dependencies.

pub async fn platform_download<'_>(
    &'_ mut self,
    request: impl IntoRequest<PlatformDownloadReq>
) -> Result<Response<Streaming<PlatformDownloadResp>>, Status>
[src]

Download a platform and its tool dependencies to the staging/packages subdirectory of the data directory.

pub async fn platform_uninstall<'_>(
    &'_ mut self,
    request: impl IntoRequest<PlatformUninstallReq>
) -> Result<Response<Streaming<PlatformUninstallResp>>, Status>
[src]

Uninstall a platform as well as its tool dependencies that are not used by other installed platforms.

pub async fn platform_upgrade<'_>(
    &'_ mut self,
    request: impl IntoRequest<PlatformUpgradeReq>
) -> Result<Response<Streaming<PlatformUpgradeResp>>, Status>
[src]

Upgrade an installed platform to the latest version.

pub async fn upload<'_>(
    &'_ mut self,
    request: impl IntoRequest<UploadReq>
) -> Result<Response<Streaming<UploadResp>>, Status>
[src]

Upload a compiled sketch to a board.

pub async fn upload_using_programmer<'_>(
    &'_ mut self,
    request: impl IntoRequest<UploadUsingProgrammerReq>
) -> Result<Response<Streaming<UploadUsingProgrammerResp>>, Status>
[src]

Upload a compiled sketch to a board using a programmer.

pub async fn list_programmers_available_for_upload<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListProgrammersAvailableForUploadReq>
) -> Result<Response<ListProgrammersAvailableForUploadResp>, Status>
[src]

List programmers available for a board.

pub async fn burn_bootloader<'_>(
    &'_ mut self,
    request: impl IntoRequest<BurnBootloaderReq>
) -> Result<Response<Streaming<BurnBootloaderResp>>, Status>
[src]

Burn bootloader to a board.

Search for a platform in the platforms indexes.

pub async fn platform_list<'_>(
    &'_ mut self,
    request: impl IntoRequest<PlatformListReq>
) -> Result<Response<PlatformListResp>, Status>
[src]

List all installed platforms.

pub async fn library_download<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryDownloadReq>
) -> Result<Response<Streaming<LibraryDownloadResp>>, Status>
[src]

Download the archive file of an Arduino library in the libraries index to the staging directory.

pub async fn library_install<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryInstallReq>
) -> Result<Response<Streaming<LibraryInstallResp>>, Status>
[src]

Download and install an Arduino library from the libraries index.

pub async fn zip_library_install<'_>(
    &'_ mut self,
    request: impl IntoRequest<ZipLibraryInstallReq>
) -> Result<Response<Streaming<ZipLibraryInstallResp>>, Status>
[src]

Install a library from a Zip File

pub async fn git_library_install<'_>(
    &'_ mut self,
    request: impl IntoRequest<GitLibraryInstallReq>
) -> Result<Response<Streaming<GitLibraryInstallResp>>, Status>
[src]

Download and install a library from a git url

pub async fn library_uninstall<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryUninstallReq>
) -> Result<Response<Streaming<LibraryUninstallResp>>, Status>
[src]

Uninstall an Arduino library.

pub async fn library_upgrade_all<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryUpgradeAllReq>
) -> Result<Response<Streaming<LibraryUpgradeAllResp>>, Status>
[src]

Upgrade all installed Arduino libraries to the newest version available.

pub async fn library_resolve_dependencies<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryResolveDependenciesReq>
) -> Result<Response<LibraryResolveDependenciesResp>, Status>
[src]

List the recursive dependencies of a library, as defined by the depends field of the library.properties files.

Search the Arduino libraries index for libraries.

pub async fn library_list<'_>(
    &'_ mut self,
    request: impl IntoRequest<LibraryListReq>
) -> Result<Response<LibraryListResp>, Status>
[src]

List the installed libraries.

Trait Implementations

impl<T: Clone> Clone for ArduinoCoreClient<T>[src]

impl<T> Debug for ArduinoCoreClient<T>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]