[−][src]Struct nakadion::components::streams::BatchLine
An analyzed line (frame) from Nakadi
Methods
impl BatchLine
[src]
pub fn new<T: Into<Bytes>>(bytes: T) -> Result<BatchLine, ParseLineError>
[src]
pub fn try_from_slice<T: AsRef<[u8]>>(
slice: T
) -> Result<BatchLine, ParseLineError>
[src]
slice: T
) -> Result<BatchLine, ParseLineError>
pub fn try_from_frame(frame: NakadiFrame) -> Result<BatchLine, ParseLineError>
[src]
pub fn with_frame_id(self, frame_id: usize) -> Self
[src]
pub fn frame_id(&self) -> usize
[src]
pub fn received_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 has_info(&self) -> bool
[src]
pub fn cursor_deserialized<T: DeserializeOwned>(&self) -> Result<T, Error>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BatchLine
impl Send for BatchLine
impl Sync for BatchLine
impl Unpin for BatchLine
impl UnwindSafe for BatchLine
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,