pub struct ClaudeToGeminiStream { /* private fields */ }Implementations§
Source§impl ClaudeToGeminiStream
impl ClaudeToGeminiStream
pub fn new( context: ClaudeToGeminiContext, flow: IdentityFlow, limits: StreamLimits, ) -> Result<Self, TransformError>
pub fn new_with_policy( context: ClaudeToGeminiContext, flow: IdentityFlow, limits: StreamLimits, policy: TargetIdPolicy, ) -> Result<Self, TransformError>
pub fn identities(&self) -> &IdentityFlow
pub fn push( &mut self, event: StreamEvent, ) -> Result<Converted<Vec<GenerateContentResponseBody>>, TransformError>
pub fn finish( self, ) -> Result<StreamEnd<GenerateContentResponseBody>, TransformError>
Trait Implementations§
Source§impl FanoutBridge for ClaudeToGeminiStream
impl FanoutBridge for ClaudeToGeminiStream
fn reserve( &mut self, role: IdentityRole, ids: &BTreeSet<String>, ) -> Result<(), TransformError>
Source§impl StreamBridge for ClaudeToGeminiStream
impl StreamBridge for ClaudeToGeminiStream
type NativeEvent = StreamEvent
type ClientEvent = GenerateContentResponseBody
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 ClaudeToGeminiStream
impl RefUnwindSafe for ClaudeToGeminiStream
impl Send for ClaudeToGeminiStream
impl Sync for ClaudeToGeminiStream
impl Unpin for ClaudeToGeminiStream
impl UnsafeUnpin for ClaudeToGeminiStream
impl UnwindSafe for ClaudeToGeminiStream
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