Trait simics::api::traits::hap::Hap

source ·
pub trait Hap {
    type Name: AsRawCstr;

    const NAME: Self::Name;

    // Provided methods
    fn delete_callback_id(handle: HapHandle) -> Result<()> { ... }
    fn delete_callback_obj_id(
        obj: *mut ConfObject,
        handle: HapHandle,
    ) -> Result<()> { ... }
}
Expand description

A SIMICS Hap and the type of callbacks associated with it

Required Associated Constants§

source

const NAME: Self::Name

The name of the HAP.

Required Associated Types§

source

type Name: AsRawCstr

The type of the name of the HAP, must be convertible to raw C string to pass to the simulator

Provided Methods§

source

fn delete_callback_id(handle: HapHandle) -> Result<()>

A callback for a hap can be deleted by its handle

source

fn delete_callback_obj_id(obj: *mut ConfObject, handle: HapHandle) -> Result<()>

A callback for a hap can be deleted by the object it is associated with

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Hap for Arinc429WordHap

source§

const NAME: Self::Name = crate::api::sys::ARINC429_WORD_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CliCommandAddedHap

source§

const NAME: Self::Name = crate::api::sys::CLI_COMMAND_ADDED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for ComponentChangeHap

source§

const NAME: Self::Name = crate::api::sys::COMPONENT_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for ComponentHierarchyChangeHap

source§

const NAME: Self::Name = crate::api::sys::COMPONENT_HIERARCHY_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for ConsoleBreakStringHap

source§

const NAME: Self::Name = crate::api::sys::CONSOLE_BREAK_STRING_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreAddressNotMappedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_ADDRESS_NOT_MAPPED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreAsynchronousTrapHap

source§

const NAME: Self::Name = crate::api::sys::CORE_ASYNCHRONOUS_TRAP_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreAtExitHap

source§

const NAME: Self::Name = crate::api::sys::CORE_AT_EXIT_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreBackToFrontHap

source§

const NAME: Self::Name = crate::api::sys::CORE_BACK_TO_FRONT_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreBreakpointChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_BREAKPOINT_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreBreakpointMemopHap

source§

const NAME: Self::Name = crate::api::sys::CORE_BREAKPOINT_MEMOP_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreCleanAtExitHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CLEAN_AT_EXIT_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfClassRegisterHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_CLASS_REGISTER_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfClassUnregisterHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_CLASS_UNREGISTER_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfClockChangeCellHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_CLOCK_CHANGE_CELL_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectChangeClockHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_CHANGE_CLOCK_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectCreateHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_CREATE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectCreatedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_CREATED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectDeleteHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_DELETE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectPreDeleteHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_PRE_DELETE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectRenameHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECT_RENAME_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectsCreatedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECTS_CREATED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfObjectsDeletedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONF_OBJECTS_DELETED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreConfigurationLoadedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONFIGURATION_LOADED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreContextActivateHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTEXT_ACTIVATE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreContextChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTEXT_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreContextDeactivateHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTEXT_DEACTIVATE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreContextUpdatedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTEXT_UPDATED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreContinuationHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTINUATION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreControlRegisterReadHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTROL_REGISTER_READ_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreControlRegisterWriteHap

source§

const NAME: Self::Name = crate::api::sys::CORE_CONTROL_REGISTER_WRITE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreDeviceAccessMemopHap

source§

const NAME: Self::Name = crate::api::sys::CORE_DEVICE_ACCESS_MEMOP_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreDisableBreakpointsHap

source§

const NAME: Self::Name = crate::api::sys::CORE_DISABLE_BREAKPOINTS_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreDiscardFutureHap

source§

const NAME: Self::Name = crate::api::sys::CORE_DISCARD_FUTURE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreDstcFlushCounterHap

source§

const NAME: Self::Name = crate::api::sys::CORE_DSTC_FLUSH_COUNTER_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreExceptionHap

source§

const NAME: Self::Name = crate::api::sys::CORE_EXCEPTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreExceptionReturnHap

source§

const NAME: Self::Name = crate::api::sys::CORE_EXCEPTION_RETURN_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreExternalInterruptHap

source§

const NAME: Self::Name = crate::api::sys::CORE_EXTERNAL_INTERRUPT_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreFrequencyChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_FREQUENCY_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreGlobalMessageHap

source§

const NAME: Self::Name = crate::api::sys::CORE_GLOBAL_MESSAGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreHapCallbackInstalledHap

source§

const NAME: Self::Name = crate::api::sys::CORE_HAP_CALLBACK_INSTALLED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreHapCallbackRemovedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_HAP_CALLBACK_REMOVED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreHapTypeAddedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_HAP_TYPE_ADDED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreImageActivityHap

source§

const NAME: Self::Name = crate::api::sys::CORE_IMAGE_ACTIVITY_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreInitialConfigurationHap

source§

const NAME: Self::Name = crate::api::sys::CORE_INITIAL_CONFIGURATION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreLogGroupsChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_LOG_GROUPS_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreLogLevelChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_LOG_LEVEL_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreLogMessageExtendedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_LOG_MESSAGE_EXTENDED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreLogMessageFilteredHap

source§

const NAME: Self::Name = crate::api::sys::CORE_LOG_MESSAGE_FILTERED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreLogMessageHap

source§

const NAME: Self::Name = crate::api::sys::CORE_LOG_MESSAGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreMagicInstructionHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MAGIC_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreMemorySpaceMapChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MEMORY_SPACE_MAP_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreModeChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MODE_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreModuleLoadedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MODULE_LOADED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreMulticoreAccelerationChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MULTICORE_ACCELERATION_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreMultithreadingChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_MULTITHREADING_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreNotImplementedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_NOT_IMPLEMENTED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CorePreferencesChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_PREFERENCES_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreProcessorScheduleChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_PROCESSOR_SCHEDULE_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreProjectChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_PROJECT_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreRecentFilesChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_RECENT_FILES_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreRexecActiveHap

source§

const NAME: Self::Name = crate::api::sys::CORE_REXEC_ACTIVE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreSimulationModeChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_SIMULATION_MODE_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreSimulationStoppedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_SIMULATION_STOPPED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreSkiptoProgressHap

source§

const NAME: Self::Name = crate::api::sys::CORE_SKIPTO_PROGRESS_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreSyncInstructionHap

source§

const NAME: Self::Name = crate::api::sys::CORE_SYNC_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreTimeTransitionHap

source§

const NAME: Self::Name = crate::api::sys::CORE_TIME_TRANSITION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreTimingModelChangeHap

source§

const NAME: Self::Name = crate::api::sys::CORE_TIMING_MODEL_CHANGE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreUserCommentsChangedHap

source§

const NAME: Self::Name = crate::api::sys::CORE_USER_COMMENTS_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for CoreWriteConfigurationHap

source§

const NAME: Self::Name = crate::api::sys::CORE_WRITE_CONFIGURATION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for EthInjectorPcapEofHap

source§

const NAME: Self::Name = crate::api::sys::ETH_INJECTOR_PCAP_EOF_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for FirewireResetHap

source§

const NAME: Self::Name = crate::api::sys::FIREWIRE_RESET_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for FirewireTransferHap

source§

const NAME: Self::Name = crate::api::sys::FIREWIRE_TRANSFER_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for GfxBreakHap

source§

const NAME: Self::Name = crate::api::sys::GFX_BREAK_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for GfxBreakStringHap

source§

const NAME: Self::Name = crate::api::sys::GFX_BREAK_STRING_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for GraphicsConsoleNewTitleHap

source§

const NAME: Self::Name = crate::api::sys::GRAPHICS_CONSOLE_NEW_TITLE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for GraphicsConsoleShowHideHap

source§

const NAME: Self::Name = crate::api::sys::GRAPHICS_CONSOLE_SHOW_HIDE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalBookmarkListChangedHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_BOOKMARK_LIST_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalBreakIoHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_BREAK_IO_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalDeviceRegAccessHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_DEVICE_REG_ACCESS_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalMicroCheckpointLoadedHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_MICRO_CHECKPOINT_LOADED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalSbWaitHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_SB_WAIT_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalTimeDirectionChangedHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_TIME_DIRECTION_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for InternalTimeQuantumChangedHap

source§

const NAME: Self::Name = crate::api::sys::INTERNAL_TIME_QUANTUM_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for RealtimeEnabledHap

source§

const NAME: Self::Name = crate::api::sys::REALTIME_ENABLED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for RecStateChangedHap

source§

const NAME: Self::Name = crate::api::sys::REC_STATE_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for RexecLimitExceededHap

source§

const NAME: Self::Name = crate::api::sys::REXEC_LIMIT_EXCEEDED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for RtcNvramUpdateHap

source§

const NAME: Self::Name = crate::api::sys::RTC_NVRAM_UPDATE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for ScsiDiskCommandHap

source§

const NAME: Self::Name = crate::api::sys::SCSI_DISK_COMMAND_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for SnNaptEnabledHap

source§

const NAME: Self::Name = crate::api::sys::SN_NAPT_ENABLED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TextConsoleNewTitleHap

source§

const NAME: Self::Name = crate::api::sys::TEXT_CONSOLE_NEW_TITLE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TextConsoleShowHideHap

source§

const NAME: Self::Name = crate::api::sys::TEXT_CONSOLE_SHOW_HIDE_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbFillDataHap

source§

const NAME: Self::Name = crate::api::sys::TLB_FILL_DATA_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbFillInstructionHap

source§

const NAME: Self::Name = crate::api::sys::TLB_FILL_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbInvalidateDataHap

source§

const NAME: Self::Name = crate::api::sys::TLB_INVALIDATE_DATA_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbInvalidateInstructionHap

source§

const NAME: Self::Name = crate::api::sys::TLB_INVALIDATE_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbMissDataHap

source§

const NAME: Self::Name = crate::api::sys::TLB_MISS_DATA_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbMissInstructionHap

source§

const NAME: Self::Name = crate::api::sys::TLB_MISS_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbReplaceDataHap

source§

const NAME: Self::Name = crate::api::sys::TLB_REPLACE_DATA_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for TlbReplaceInstructionHap

source§

const NAME: Self::Name = crate::api::sys::TLB_REPLACE_INSTRUCTION_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for UiRecordStateChangedHap

source§

const NAME: Self::Name = crate::api::sys::UI_RECORD_STATE_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for UiRunStateChangedHap

source§

const NAME: Self::Name = crate::api::sys::UI_RUN_STATE_CHANGED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for VgaBreakStringHap

source§

const NAME: Self::Name = crate::api::sys::VGA_BREAK_STRING_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for VgaRefreshTriggeredHap

source§

const NAME: Self::Name = crate::api::sys::VGA_REFRESH_TRIGGERED_HAP_NAME

source§

type Name = &'static [u8]

source§

impl Hap for XtermBreakStringHap

source§

const NAME: Self::Name = crate::api::sys::XTERM_BREAK_STRING_HAP_NAME

source§

type Name = &'static [u8]