pub struct ResponsesToClaudeStream { /* private fields */ }Implementations§
Source§impl ResponsesToClaudeStream
impl ResponsesToClaudeStream
pub fn new( context: ResponsesToClaudeContext, flow: IdentityFlow, limits: StreamLimits, ) -> Result<Self, TransformError>
pub fn new_with_policy( context: ResponsesToClaudeContext, flow: IdentityFlow, limits: StreamLimits, policy: TargetIdPolicy, ) -> Result<Self, TransformError>
pub fn identities(&self) -> &IdentityFlow
pub fn push( &mut self, event: StreamEvent, ) -> Result<Converted<Vec<StreamEvent>>, TransformError>
pub fn finish(self) -> Result<StreamEnd<StreamEvent>, TransformError>
Trait Implementations§
Source§impl StreamBridge for ResponsesToClaudeStream
impl StreamBridge for ResponsesToClaudeStream
type NativeEvent = StreamEvent
type ClientEvent = StreamEvent
type NativeRequest = GenerateContentRequestBody
type ClientRequest = GenerateContentRequestBody
fn identities(&self) -> &IdentityFlow
fn push( &mut self, event: Self::NativeEvent, ) -> Result<Converted<Vec<Self::ClientEvent>>, TransformError>
fn finish(self) -> Result<BridgeEnd<Self::ClientEvent>, TransformError>
fn push_done(&mut self) -> Result<(), TransformError>
Auto Trait Implementations§
impl Freeze for ResponsesToClaudeStream
impl RefUnwindSafe for ResponsesToClaudeStream
impl Send for ResponsesToClaudeStream
impl Sync for ResponsesToClaudeStream
impl Unpin for ResponsesToClaudeStream
impl UnsafeUnpin for ResponsesToClaudeStream
impl UnwindSafe for ResponsesToClaudeStream
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