pub struct EventInput<E: Into<Event> + CondSerialize + CondDeserialize> { /* private fields */ }
Expand description

The simplest input method to the monitor. It accepts any type that implements Into<Event>. The conversion to values and the order of inputs must be handled externally.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Arbitrary type of the data provided to the input source at creation time.
The error type returned by the input source on IO errors or parsing issues.
The type from which an event is generated by the input source.
Creates a new input source from a HashMap mapping the names of the inputs in the specification to their position in the event.
This function converts a record to an event.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.