Trait embedded_svc::ota::OtaUpdate
source · pub trait OtaUpdate: Write {
type OtaUpdateFinished: OtaUpdateFinished;
// Required methods
fn finish(self) -> Result<Self::OtaUpdateFinished, Self::Error>;
fn complete(self) -> Result<(), Self::Error>;
fn abort(self) -> Result<(), Self::Error>;
// Provided method
fn update<R>(
self,
read: R,
progress: impl Fn(u64, u64),
) -> Result<(), CopyError<R::Error, Self::Error>>
where R: Read,
Self: Sized { ... }
}