[][src]Struct nakadion::components::connector::EventStreamBatch

pub struct EventStreamBatch { /* fields omitted */ }

An analyzed line (frame) from Nakadi

See also Nakadi Manual

Implementations

impl EventStreamBatch[src]

pub fn new<T: Into<Bytes>>(
    bytes: T
) -> Result<EventStreamBatch, ParseBatchError>
[src]

pub fn try_from_slice<T: AsRef<[u8]>>(
    slice: T
) -> Result<EventStreamBatch, ParseBatchError>
[src]

pub fn try_from_frame(
    frame: NakadiFrame
) -> Result<EventStreamBatch, ParseBatchError>
[src]

pub fn with_frame_id(self, frame_id: usize) -> Self[src]

pub fn frame_id(&self) -> usize[src]

pub fn frame_started_at(&self) -> Instant[src]

pub fn frame_completed_at(&self) -> Instant[src]

pub fn bytes(&self) -> Bytes[src]

pub fn cursor_str(&self) -> &str[src]

pub fn cursor_bytes(&self) -> Bytes[src]

pub fn partition_bytes(&self) -> Bytes[src]

pub fn partition_str(&self) -> &str[src]

pub fn event_type_bytes(&self) -> Bytes[src]

pub fn event_type_str(&self) -> &str[src]

pub fn to_event_type_partition(&self) -> EventTypePartition[src]

pub fn events_bytes(&self) -> Option<Bytes>[src]

pub fn events_str(&self) -> Option<&str>[src]

pub fn info_bytes(&self) -> Option<Bytes>[src]

pub fn info_str(&self) -> Option<&str>[src]

pub fn is_keep_alive_line(&self) -> bool[src]

pub fn has_events(&self) -> bool[src]

pub fn n_events(&self) -> usize[src]

pub fn has_info(&self) -> bool[src]

pub fn cursor_deserialized<T: DeserializeOwned>(&self) -> Result<T, Error>[src]

pub fn stats(&self) -> EventStreamBatchStats[src]

Trait Implementations

impl Debug for EventStreamBatch[src]

Auto Trait Implementations

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,