Enum mock_paver::PaverEvent
source · pub enum PaverEvent {
Show 15 variants
ReadAsset {
configuration: Configuration,
asset: Asset,
},
WriteAsset {
configuration: Configuration,
asset: Asset,
payload: Vec<u8>,
},
ReadFirmware {
configuration: Configuration,
firmware_type: String,
},
WriteFirmware {
configuration: Configuration,
firmware_type: String,
payload: Vec<u8>,
},
QueryActiveConfiguration,
QueryConfigurationLastSetActive,
QueryCurrentConfiguration,
QueryConfigurationStatus {
configuration: Configuration,
},
QueryConfigurationStatusAndBootAttempts {
configuration: Configuration,
},
SetConfigurationHealthy {
configuration: Configuration,
},
SetConfigurationActive {
configuration: Configuration,
},
SetConfigurationUnbootable {
configuration: Configuration,
},
SetOneShotRecovery,
BootManagerFlush,
DataSinkFlush,
}
Variants§
ReadAsset
WriteAsset
ReadFirmware
WriteFirmware
QueryActiveConfiguration
QueryConfigurationLastSetActive
QueryCurrentConfiguration
QueryConfigurationStatus
Fields
§
configuration: Configuration
QueryConfigurationStatusAndBootAttempts
Fields
§
configuration: Configuration
SetConfigurationHealthy
Fields
§
configuration: Configuration
SetConfigurationActive
Fields
§
configuration: Configuration
SetConfigurationUnbootable
Fields
§
configuration: Configuration
SetOneShotRecovery
BootManagerFlush
DataSinkFlush
Implementations§
source§impl PaverEvent
impl PaverEvent
pub fn from_data_sink_request(request: &DataSinkRequest) -> PaverEvent
pub fn from_boot_manager_request(request: &BootManagerRequest) -> PaverEvent
Trait Implementations§
source§impl Clone for PaverEvent
impl Clone for PaverEvent
source§fn clone(&self) -> PaverEvent
fn clone(&self) -> PaverEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PaverEvent
impl Debug for PaverEvent
source§impl PartialEq for PaverEvent
impl PartialEq for PaverEvent
source§fn eq(&self, other: &PaverEvent) -> bool
fn eq(&self, other: &PaverEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PaverEvent
impl StructuralPartialEq for PaverEvent
Auto Trait Implementations§
impl Freeze for PaverEvent
impl RefUnwindSafe for PaverEvent
impl Send for PaverEvent
impl Sync for PaverEvent
impl Unpin for PaverEvent
impl UnwindSafe for PaverEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)