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 { ... }
}

Required Associated Types§

Required Methods§

source

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

source

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

source

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

Provided Methods§

source

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

Implementors§