Skip to main content

Event

Enum Event 

Source
pub enum Event<'a> {
    Open {
        dd: &'a str,
        mode: OpenMode,
        path: &'a Path,
    },
    Close {
        dd: &'a str,
        path: &'a Path,
    },
    Load {
        program: &'a str,
        source: Option<&'a Path>,
    },
    Paragraph {
        program: &'a str,
        name: &'a str,
        index: usize,
    },
    Sink {
        kind: &'static str,
        file: &'a str,
        line: u32,
        operand: &'a str,
    },
}
Expand description

What a run did that its evidence journal records: each file as it is opened and closed, each program CALL loads, with the source it was read from when a library supplied it, and each operation an input could steer, with its operand as the program’s code page reads it.

Variants§

§

Open

Fields

§dd: &'a str
§path: &'a Path
§

Close

Fields

§dd: &'a str
§path: &'a Path
§

Load

Fields

§program: &'a str
§source: Option<&'a Path>
§

Paragraph

Control entering paragraph (or section header) index of program at its start.

Fields

§program: &'a str
§name: &'a str
§index: usize
§

Sink

kind is cobolwork’s name for the sink (dynamic-program-load, log, …); file is the library file or COPY member the operation is in, empty for the first program’s own source.

Fields

§kind: &'static str
§file: &'a str
§line: u32
§operand: &'a str

Auto Trait Implementations§

§

impl<'a> Freeze for Event<'a>

§

impl<'a> RefUnwindSafe for Event<'a>

§

impl<'a> Send for Event<'a>

§

impl<'a> Sync for Event<'a>

§

impl<'a> Unpin for Event<'a>

§

impl<'a> UnsafeUnpin for Event<'a>

§

impl<'a> UnwindSafe for Event<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.