pub enum StreamLifecycle {
Incomplete,
Complete,
Interrupted,
}Expand description
Lifecycle state of a streamed model response.
Variants§
Incomplete
Events are still arriving.
Complete
Final response has been assembled.
Interrupted
Stream ended by explicit cancellation or transport interruption.
Trait Implementations§
Source§impl Clone for StreamLifecycle
impl Clone for StreamLifecycle
Source§fn clone(&self) -> StreamLifecycle
fn clone(&self) -> StreamLifecycle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamLifecycle
Source§impl Debug for StreamLifecycle
impl Debug for StreamLifecycle
Source§impl Default for StreamLifecycle
impl Default for StreamLifecycle
Source§fn default() -> StreamLifecycle
fn default() -> StreamLifecycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamLifecycle
impl<'de> Deserialize<'de> for StreamLifecycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StreamLifecycle
Source§impl PartialEq for StreamLifecycle
impl PartialEq for StreamLifecycle
Source§impl Serialize for StreamLifecycle
impl Serialize for StreamLifecycle
impl StructuralPartialEq for StreamLifecycle
Auto Trait Implementations§
impl Freeze for StreamLifecycle
impl RefUnwindSafe for StreamLifecycle
impl Send for StreamLifecycle
impl Sync for StreamLifecycle
impl Unpin for StreamLifecycle
impl UnsafeUnpin for StreamLifecycle
impl UnwindSafe for StreamLifecycle
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