pub enum ResponseStreamTransport {
Http,
WebSocket,
Auto,
}Expand description
Streaming transport policy for Responses-compatible providers.
Variants§
Http
Use HTTP streaming over server-sent events.
WebSocket
Use Responses WebSocket mode.
Auto
Prefer WebSocket and fall back to HTTP streaming for retryable pre-event WebSocket errors.
Trait Implementations§
Source§impl Clone for ResponseStreamTransport
impl Clone for ResponseStreamTransport
Source§fn clone(&self) -> ResponseStreamTransport
fn clone(&self) -> ResponseStreamTransport
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 ResponseStreamTransport
Source§impl Debug for ResponseStreamTransport
impl Debug for ResponseStreamTransport
Source§impl<'de> Deserialize<'de> for ResponseStreamTransport
impl<'de> Deserialize<'de> for ResponseStreamTransport
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 ResponseStreamTransport
Source§impl PartialEq for ResponseStreamTransport
impl PartialEq for ResponseStreamTransport
Source§impl Serialize for ResponseStreamTransport
impl Serialize for ResponseStreamTransport
impl StructuralPartialEq for ResponseStreamTransport
Auto Trait Implementations§
impl Freeze for ResponseStreamTransport
impl RefUnwindSafe for ResponseStreamTransport
impl Send for ResponseStreamTransport
impl Sync for ResponseStreamTransport
impl Unpin for ResponseStreamTransport
impl UnsafeUnpin for ResponseStreamTransport
impl UnwindSafe for ResponseStreamTransport
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