Struct esp_idf_svc::ota::EspOtaUpdate
source · pub struct EspOtaUpdate<'a> { /* private fields */ }
Implementations§
source§impl<'a> EspOtaUpdate<'a>
impl<'a> EspOtaUpdate<'a>
Trait Implementations§
source§impl<'a> Debug for EspOtaUpdate<'a>
impl<'a> Debug for EspOtaUpdate<'a>
source§impl Drop for EspOtaUpdate<'_>
impl Drop for EspOtaUpdate<'_>
source§impl<'a> ErrorType for EspOtaUpdate<'a>
impl<'a> ErrorType for EspOtaUpdate<'a>
§type Error = EspIOError
type Error = EspIOError
Error type of all the IO operations on this type.
source§impl<'a> OtaUpdate for EspOtaUpdate<'a>
impl<'a> OtaUpdate for EspOtaUpdate<'a>
type OtaUpdateFinished = EspOtaUpdateFinished<'a>
fn finish(self) -> Result<Self::OtaUpdateFinished, Self::Error>
fn complete(self) -> Result<(), Self::Error>
fn abort(self) -> Result<(), Self::Error>
fn update<R>(
self,
read: R,
progress: impl Fn(u64, u64),
) -> Result<(), CopyError<<R as ErrorType>::Error, Self::Error>>where
R: Read,
Self: Sized,
source§impl<'a> Write for EspOtaUpdate<'a>
impl<'a> Write for EspOtaUpdate<'a>
source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.