embedded_svc::ota::asynch

Trait OtaUpdate

Source
pub trait OtaUpdate: Write {
    type OtaUpdateFinished: OtaUpdateFinished;

    // Required methods
    async fn finish(self) -> Result<Self::OtaUpdateFinished, Self::Error>;
    async fn complete(self) -> Result<(), Self::Error>;
    async fn abort(self) -> Result<(), Self::Error>;
    async fn update<R>(
        self,
        read: R,
        progress: impl Fn(u64, u64),
    ) -> Result<(), CopyError<R::Error, Self::Error>>
       where R: Read,
             Self: Sized;
}

Required Associated Types§

Required Methods§

Source

async fn finish(self) -> Result<Self::OtaUpdateFinished, Self::Error>

Source

async fn complete(self) -> Result<(), Self::Error>

Source

async fn abort(self) -> Result<(), Self::Error>

Source

async fn update<R>( self, read: R, progress: impl Fn(u64, u64), ) -> Result<(), CopyError<R::Error, Self::Error>>
where R: Read, Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§