pub enum StreamingEvent {
StreamStarted,
ChunkReceived {
bytes: usize,
},
StreamComplete {
total_bytes: usize,
},
StreamError {
message: String,
},
}Expand description
Events emitted by the streaming decoder
Variants§
StreamStarted
Stream started (BEGIN frame received)
ChunkReceived
Chunk received
StreamComplete
Stream completed successfully (END frame received)
StreamError
Stream error (ERROR frame received)
Trait Implementations§
Source§impl Clone for StreamingEvent
impl Clone for StreamingEvent
Source§fn clone(&self) -> StreamingEvent
fn clone(&self) -> StreamingEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamingEvent
impl Debug for StreamingEvent
Source§impl PartialEq for StreamingEvent
impl PartialEq for StreamingEvent
impl StructuralPartialEq for StreamingEvent
Auto Trait Implementations§
impl Freeze for StreamingEvent
impl RefUnwindSafe for StreamingEvent
impl Send for StreamingEvent
impl Sync for StreamingEvent
impl Unpin for StreamingEvent
impl UnwindSafe for StreamingEvent
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