Trait embedded_svc::ota::asynch::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,

Object Safety§

This trait is not object safe.

Implementors§