pub struct SettingsClient<T> { /* private fields */ }
Expand description
The Settings service provides an interface to Arduino CLI’s configuration options
Implementations§
Source§impl SettingsClient<Channel>
impl SettingsClient<Channel>
Source§impl<T> SettingsClient<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> SettingsClient<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 get_all(
&mut self,
request: impl IntoRequest<GetAllRequest>,
) -> Result<Response<RawData>, Status>
pub async fn get_all( &mut self, request: impl IntoRequest<GetAllRequest>, ) -> Result<Response<RawData>, Status>
List all the settings.
Sourcepub async fn merge(
&mut self,
request: impl IntoRequest<RawData>,
) -> Result<Response<MergeResponse>, Status>
pub async fn merge( &mut self, request: impl IntoRequest<RawData>, ) -> Result<Response<MergeResponse>, Status>
Set multiple settings values at once.
Sourcepub async fn get_value(
&mut self,
request: impl IntoRequest<GetValueRequest>,
) -> Result<Response<Value>, Status>
pub async fn get_value( &mut self, request: impl IntoRequest<GetValueRequest>, ) -> Result<Response<Value>, Status>
Get the value of a specific setting.
Sourcepub async fn set_value(
&mut self,
request: impl IntoRequest<Value>,
) -> Result<Response<SetValueResponse>, Status>
pub async fn set_value( &mut self, request: impl IntoRequest<Value>, ) -> Result<Response<SetValueResponse>, Status>
Set the value of a specific setting.
Trait Implementations§
Source§impl<T: Clone> Clone for SettingsClient<T>
impl<T: Clone> Clone for SettingsClient<T>
Auto Trait Implementations§
impl<T> Freeze for SettingsClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SettingsClient<T>
impl<T> Send for SettingsClient<T>where
T: Send,
impl<T> Sync for SettingsClient<T>where
T: Sync,
impl<T> Unpin for SettingsClient<T>where
T: Unpin,
impl<T> !UnwindSafe for SettingsClient<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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T
in a tonic::Request