[−][src]Struct arduino_cli_client::commands::arduino_core_client::ArduinoCoreClient
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]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
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]
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
[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]
&'_ mut self,
request: impl IntoRequest<InitReq>
) -> Result<Response<Streaming<InitResp>>, Status>
Start a new instance of the Arduino Core Service
pub async fn destroy<'_>(
&'_ mut self,
request: impl IntoRequest<DestroyReq>
) -> Result<Response<DestroyResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<DestroyReq>
) -> Result<Response<DestroyResp>, Status>
Destroy an instance of the Arduino Core Service
pub async fn rescan<'_>(
&'_ mut self,
request: impl IntoRequest<RescanReq>
) -> Result<Response<RescanResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<RescanReq>
) -> Result<Response<RescanResp>, Status>
Rescan instance of the Arduino Core Service
pub async fn update_index<'_>(
&'_ mut self,
request: impl IntoRequest<UpdateIndexReq>
) -> Result<Response<Streaming<UpdateIndexResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UpdateIndexReq>
) -> Result<Response<Streaming<UpdateIndexResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<UpdateLibrariesIndexReq>
) -> Result<Response<Streaming<UpdateLibrariesIndexResp>>, Status>
Update libraries index
pub async fn update_core_libraries_index<'_>(
&'_ mut self,
request: impl IntoRequest<UpdateCoreLibrariesIndexReq>
) -> Result<Response<Streaming<UpdateCoreLibrariesIndexResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UpdateCoreLibrariesIndexReq>
) -> Result<Response<Streaming<UpdateCoreLibrariesIndexResp>>, Status>
Update packages indexes for both Cores and Libraries
pub async fn outdated<'_>(
&'_ mut self,
request: impl IntoRequest<OutdatedReq>
) -> Result<Response<OutdatedResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<OutdatedReq>
) -> Result<Response<OutdatedResp>, Status>
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]
&'_ mut self,
request: impl IntoRequest<UpgradeReq>
) -> Result<Response<Streaming<UpgradeResp>>, Status>
Upgrade both Cores and Libraries
pub async fn version<'_>(
&'_ mut self,
request: impl IntoRequest<VersionReq>
) -> Result<Response<VersionResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<VersionReq>
) -> Result<Response<VersionResp>, Status>
Get the version of Arduino CLI in use.
pub async fn load_sketch<'_>(
&'_ mut self,
request: impl IntoRequest<LoadSketchReq>
) -> Result<Response<LoadSketchResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<LoadSketchReq>
) -> Result<Response<LoadSketchResp>, Status>
Returns all files composing a Sketch
pub async fn archive_sketch<'_>(
&'_ mut self,
request: impl IntoRequest<ArchiveSketchReq>
) -> Result<Response<ArchiveSketchResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ArchiveSketchReq>
) -> Result<Response<ArchiveSketchResp>, Status>
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]
&'_ mut self,
request: impl IntoRequest<BoardDetailsReq>
) -> Result<Response<BoardDetailsResp>, Status>
Requests details about a board
pub async fn board_attach<'_>(
&'_ mut self,
request: impl IntoRequest<BoardAttachReq>
) -> Result<Response<Streaming<BoardAttachResp>>, Status>
[src]
&'_ 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.
pub async fn board_list<'_>(
&'_ mut self,
request: impl IntoRequest<BoardListReq>
) -> Result<Response<BoardListResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<BoardListReq>
) -> Result<Response<BoardListResp>, Status>
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]
&'_ mut self,
request: impl IntoRequest<BoardListAllReq>
) -> Result<Response<BoardListAllResp>, Status>
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]
&'_ mut self,
request: impl IntoStreamingRequest<Message = BoardListWatchReq>
) -> Result<Response<Streaming<BoardListWatchResp>>, Status>
List boards connection and disconnected events.
pub async fn compile<'_>(
&'_ mut self,
request: impl IntoRequest<CompileReq>
) -> Result<Response<Streaming<CompileResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<CompileReq>
) -> Result<Response<Streaming<CompileResp>>, Status>
Compile an Arduino sketch.
pub async fn platform_install<'_>(
&'_ mut self,
request: impl IntoRequest<PlatformInstallReq>
) -> Result<Response<Streaming<PlatformInstallResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<PlatformInstallReq>
) -> Result<Response<Streaming<PlatformInstallResp>>, Status>
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]
&'_ 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.
pub async fn platform_uninstall<'_>(
&'_ mut self,
request: impl IntoRequest<PlatformUninstallReq>
) -> Result<Response<Streaming<PlatformUninstallResp>>, Status>
[src]
&'_ 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.
pub async fn platform_upgrade<'_>(
&'_ mut self,
request: impl IntoRequest<PlatformUpgradeReq>
) -> Result<Response<Streaming<PlatformUpgradeResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<PlatformUpgradeReq>
) -> Result<Response<Streaming<PlatformUpgradeResp>>, Status>
Upgrade an installed platform to the latest version.
pub async fn upload<'_>(
&'_ mut self,
request: impl IntoRequest<UploadReq>
) -> Result<Response<Streaming<UploadResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UploadReq>
) -> Result<Response<Streaming<UploadResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<UploadUsingProgrammerReq>
) -> Result<Response<Streaming<UploadUsingProgrammerResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<ListProgrammersAvailableForUploadReq>
) -> Result<Response<ListProgrammersAvailableForUploadResp>, Status>
List programmers available for a board.
pub async fn burn_bootloader<'_>(
&'_ mut self,
request: impl IntoRequest<BurnBootloaderReq>
) -> Result<Response<Streaming<BurnBootloaderResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<BurnBootloaderReq>
) -> Result<Response<Streaming<BurnBootloaderResp>>, Status>
Burn bootloader to a board.
pub async fn platform_search<'_>(
&'_ mut self,
request: impl IntoRequest<PlatformSearchReq>
) -> Result<Response<PlatformSearchResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<PlatformSearchReq>
) -> Result<Response<PlatformSearchResp>, Status>
Search for a platform in the platforms indexes.
pub async fn platform_list<'_>(
&'_ mut self,
request: impl IntoRequest<PlatformListReq>
) -> Result<Response<PlatformListResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<PlatformListReq>
) -> Result<Response<PlatformListResp>, Status>
List all installed platforms.
pub async fn library_download<'_>(
&'_ mut self,
request: impl IntoRequest<LibraryDownloadReq>
) -> Result<Response<Streaming<LibraryDownloadResp>>, Status>
[src]
&'_ 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.
pub async fn library_install<'_>(
&'_ mut self,
request: impl IntoRequest<LibraryInstallReq>
) -> Result<Response<Streaming<LibraryInstallResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<LibraryInstallReq>
) -> Result<Response<Streaming<LibraryInstallResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<ZipLibraryInstallReq>
) -> Result<Response<Streaming<ZipLibraryInstallResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<GitLibraryInstallReq>
) -> Result<Response<Streaming<GitLibraryInstallResp>>, Status>
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]
&'_ mut self,
request: impl IntoRequest<LibraryUninstallReq>
) -> Result<Response<Streaming<LibraryUninstallResp>>, Status>
Uninstall an Arduino library.
pub async fn library_upgrade_all<'_>(
&'_ mut self,
request: impl IntoRequest<LibraryUpgradeAllReq>
) -> Result<Response<Streaming<LibraryUpgradeAllResp>>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<LibraryUpgradeAllReq>
) -> Result<Response<Streaming<LibraryUpgradeAllResp>>, Status>
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]
&'_ 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.
pub async fn library_search<'_>(
&'_ mut self,
request: impl IntoRequest<LibrarySearchReq>
) -> Result<Response<LibrarySearchResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<LibrarySearchReq>
) -> Result<Response<LibrarySearchResp>, Status>
Search the Arduino libraries index for libraries.
pub async fn library_list<'_>(
&'_ mut self,
request: impl IntoRequest<LibraryListReq>
) -> Result<Response<LibraryListResp>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<LibraryListReq>
) -> Result<Response<LibraryListResp>, Status>
List the installed libraries.
Trait Implementations
impl<T: Clone> Clone for ArduinoCoreClient<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
impl<T> Sync for ArduinoCoreClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ArduinoCoreClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for ArduinoCoreClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,