pub struct EventsAnswer {
pub events: Vec<EventRecord>,
pub cursor: Option<EventId>,
pub print_ended: Option<Option<PrintEnded>>,
}Expand description
What an events read answers: the events stored after its cursor that pass its filters, oldest first, and where the next read picks up.
Fields§
§events: Vec<EventRecord>The events, oldest first in the order they were stored, each exactly as a history read serves it.
cursor: Option<EventId>The last event this read examined, whether or not it passed the
filters, given as after to read on from it; null when the log held
nothing to start after. Always sent, as null when it is that.
print_ended: Option<Option<PrintEnded>>The watched print’s end as stored, whatever the filters said, and null while it is open. Absent from a read that names no print.
Trait Implementations§
Source§impl Clone for EventsAnswer
impl Clone for EventsAnswer
Source§impl Debug for EventsAnswer
impl Debug for EventsAnswer
Source§impl JsonSchema for EventsAnswer
impl JsonSchema for EventsAnswer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for EventsAnswer
impl PartialEq for EventsAnswer
Source§impl Serialize for EventsAnswer
impl Serialize for EventsAnswer
impl StructuralPartialEq for EventsAnswer
Auto Trait Implementations§
impl Forget for EventsAnswer
impl Freeze for EventsAnswer
impl RefUnwindSafe for EventsAnswer
impl Send for EventsAnswer
impl Sync for EventsAnswer
impl Unpin for EventsAnswer
impl UnsafeUnpin for EventsAnswer
impl UnwindSafe for EventsAnswer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more