Struct rustot::ota::builder::OtaAgentBuilder
source · pub struct OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32>where
C: ControlInterface,
DP: DataInterface,
DS: DataInterface,
T: Timer<TIMER_HZ>,
ST: Timer<TIMER_HZ>,
PAL: OtaPal,{ /* private fields */ }
Implementations
sourceimpl<'a, C, DP, T, PAL, const TIMER_HZ: u32> OtaAgentBuilder<'a, C, DP, NoInterface, T, NoTimer, PAL, TIMER_HZ>where
C: ControlInterface,
DP: DataInterface,
T: Timer<TIMER_HZ>,
PAL: OtaPal,
impl<'a, C, DP, T, PAL, const TIMER_HZ: u32> OtaAgentBuilder<'a, C, DP, NoInterface, T, NoTimer, PAL, TIMER_HZ>where
C: ControlInterface,
DP: DataInterface,
T: Timer<TIMER_HZ>,
PAL: OtaPal,
sourceimpl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: ControlInterface,
DP: DataInterface,
DS: DataInterface,
T: Timer<TIMER_HZ>,
ST: Timer<TIMER_HZ>,
PAL: OtaPal,
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: ControlInterface,
DP: DataInterface,
DS: DataInterface,
T: Timer<TIMER_HZ>,
ST: Timer<TIMER_HZ>,
PAL: OtaPal,
pub fn block_size(self, block_size: usize) -> Self
pub fn max_request_momentum(self, max_request_momentum: u8) -> Self
pub fn activate_delay(self, activate_delay: u8) -> Self
pub fn request_wait_ms(self, request_wait_ms: u32) -> Self
pub fn status_update_frequency(self, status_update_frequency: u32) -> Self
pub fn allow_downgrade(self) -> Self
pub fn with_self_test_timeout<NST>(
self,
timer: NST,
timeout_ms: u32
) -> OtaAgentBuilder<'a, C, DP, DS, T, NST, PAL, TIMER_HZ>where
NST: Timer<TIMER_HZ>,
pub fn build(self) -> OtaAgent<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>
Auto Trait Implementations
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> RefUnwindSafe for OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: RefUnwindSafe,
DP: RefUnwindSafe,
DS: RefUnwindSafe,
PAL: RefUnwindSafe,
ST: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> Send for OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: Sync,
DP: Send,
DS: Send,
PAL: Send,
ST: Send,
T: Send,
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> Sync for OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: Sync,
DP: Sync,
DS: Sync,
PAL: Sync,
ST: Sync,
T: Sync,
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> Unpin for OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
DP: Unpin,
DS: Unpin,
PAL: Unpin,
ST: Unpin,
T: Unpin,
impl<'a, C, DP, DS, T, ST, PAL, const TIMER_HZ: u32> UnwindSafe for OtaAgentBuilder<'a, C, DP, DS, T, ST, PAL, TIMER_HZ>where
C: RefUnwindSafe,
DP: UnwindSafe,
DS: UnwindSafe,
PAL: UnwindSafe,
ST: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more