pub struct ResponsesWsSession { /* private fields */ }Implementations§
Source§impl ResponsesWsSession
impl ResponsesWsSession
pub fn is_poisoned(&self) -> bool
pub fn is_busy(&self) -> bool
Sourcepub fn failure_event(&self) -> Option<&StreamEvent>
pub fn failure_event(&self) -> Option<&StreamEvent>
A received native Error/Failed event remains available after poisoning.
pub fn websocket_failure(&self) -> Option<&ErrorMessage>
pub fn peer_close(&self) -> Option<&WsClose>
Sourcepub fn last_response_id(&self) -> Option<&str>
pub fn last_response_id(&self) -> Option<&str>
This is the real native ID, never an inferred continuation or alias.
pub fn last_status(&self) -> Option<ResponseStatus>
pub fn last_report(&self) -> &Report
pub fn turn( &mut self, request: GenerateContentRequestBody, ) -> Result<ResponsesWsTurn<'_>, TransformError>
Sourcepub fn turn_message(
&mut self,
request: RequestMessage,
) -> Result<ResponsesWsTurn<'_>, TransformError>
pub fn turn_message( &mut self, request: RequestMessage, ) -> Result<ResponsesWsTurn<'_>, TransformError>
One explicit lane at a time. Native Responses supports concurrent lanes; this owned-turn helper intentionally serializes them.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResponsesWsSession
impl !Sync for ResponsesWsSession
impl !UnwindSafe for ResponsesWsSession
impl Freeze for ResponsesWsSession
impl Send for ResponsesWsSession
impl Unpin for ResponsesWsSession
impl UnsafeUnpin for ResponsesWsSession
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