[][src]Enum ttk91::event::Event

pub enum Event {
    SupervisorCall {
        code: u16,
    },
    MemoryChange {
        address: u16,
        data: i32,
    },
    RegisterChange {
        register: Register,
        data: i32,
    },
    Output {
        device: u16,
        data: i32,
    },
}

Represents an event that occurred while executing a program.

Variants

SupervisorCall

The program triggered a supervisor call.

Fields of SupervisorCall

code: u16

The code of the supervisor call.

MemoryChange

The program modified a memory location.

Fields of MemoryChange

address: u16

The address of the changed memory location.

data: i32

New value of the changed memory location.

RegisterChange

The program modified a register.

Fields of RegisterChange

register: Register

The register which was modified.

data: i32

The new value of the register.

Output

The program sent data to an output device.

Fields of Output

device: u16

Identifier of the target device.

data: i32

The data sent.

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.