Struct EventReaderCore

Source
pub struct EventReaderCore<T, D, R: Read> { /* private fields */ }
Expand description

A Wrapper for R: Read implementing EventIterator<T, D>.

Implementations§

Source§

impl<T, D, R: Read> EventReaderCore<T, D, R>

Source

pub fn new(r: R) -> Self

Allocates a new EventReader wrapping a supplied reader.

Trait Implementations§

Source§

impl<T: Abomonation, D: Abomonation, R: Read> EventIteratorCore<T, D> for EventReaderCore<T, D, R>

Source§

fn next(&mut self) -> Option<&EventCore<T, D>>

Iterates over references to EventCore<T, D> elements.

Auto Trait Implementations§

§

impl<T, D, R> Freeze for EventReaderCore<T, D, R>
where R: Freeze,

§

impl<T, D, R> RefUnwindSafe for EventReaderCore<T, D, R>

§

impl<T, D, R> Send for EventReaderCore<T, D, R>
where R: Send, T: Send, D: Send,

§

impl<T, D, R> Sync for EventReaderCore<T, D, R>
where R: Sync, T: Sync, D: Sync,

§

impl<T, D, R> Unpin for EventReaderCore<T, D, R>
where R: Unpin, T: Unpin, D: Unpin,

§

impl<T, D, R> UnwindSafe for EventReaderCore<T, D, R>
where R: UnwindSafe, T: UnwindSafe, D: UnwindSafe,

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, D, E> EventIterator<T, D> for E
where E: EventIteratorCore<T, Vec<D>>,

Source§

fn next(&mut self) -> Option<&EventCore<T, Vec<D>>>

Iterates over references to Event<T, D> elements.
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.