Trait embedded_update::UpdateService
source · [−]pub trait UpdateService {
type Error: Debug;
type RequestFuture<'m>: Future<Output = Result<Command<'m>, Self::Error>> + 'm
where
Self: 'm;
fn request<'m>(
&'m mut self,
status: &'m Status<'m>
) -> Self::RequestFuture<'m>;
}
Expand description
Trait for the firmware update service.
The service is responsible for establishing the connection to the firmware update service and performing the request-response cycle with the update service.
Required Associated Types
Required Methods
fn request<'m>(&'m mut self, status: &'m Status<'m>) -> Self::RequestFuture<'m>
fn request<'m>(&'m mut self, status: &'m Status<'m>) -> Self::RequestFuture<'m>
Send the status to the server, and return the Command responded by the service rx buffer.