pub enum ResponsesTransport {
HttpSse,
WebSocket,
}Expand description
Which wire transport mentra streams the Responses format over, as
RuntimeBuilder::with_responses_transport takes it.
Re-exported for the same reason and beside the executor types above, in the
module that owns the builder asking for it. Mind the feature: selecting
ResponsesTransport::WebSocket needs basis’s responses-websocket
feature, which forwards to mentra’s — see the method for what happens
without it.
Streaming transport used by Responses-family providers.
Variants§
HttpSse
Standard HTTP request with Server-Sent Events response streaming.
WebSocket
Long-lived WebSocket connection driven by response.create frames.
Trait Implementations§
Source§impl Clone for ResponsesTransport
impl Clone for ResponsesTransport
Source§fn clone(&self) -> ResponsesTransport
fn clone(&self) -> ResponsesTransport
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 ResponsesTransport
Source§impl Debug for ResponsesTransport
impl Debug for ResponsesTransport
Source§impl Default for ResponsesTransport
impl Default for ResponsesTransport
Source§fn default() -> ResponsesTransport
fn default() -> ResponsesTransport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponsesTransport
impl<'de> Deserialize<'de> for ResponsesTransport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponsesTransport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponsesTransport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResponsesTransport
Source§impl PartialEq for ResponsesTransport
impl PartialEq for ResponsesTransport
Source§impl Serialize for ResponsesTransport
impl Serialize for ResponsesTransport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ResponsesTransport
Auto Trait Implementations§
impl Forget for ResponsesTransport
impl Freeze for ResponsesTransport
impl RefUnwindSafe for ResponsesTransport
impl Send for ResponsesTransport
impl Sync for ResponsesTransport
impl Unpin for ResponsesTransport
impl UnsafeUnpin for ResponsesTransport
impl UnwindSafe for ResponsesTransport
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