pub struct GeminiToClaudeStream { /* private fields */ }Implementations§
Source§impl GeminiToClaudeStream
impl GeminiToClaudeStream
pub fn new( ctx: GeminiToClaudeContext, flow: IdentityFlow, limits: StreamLimits, ) -> Result<Self, TransformError>
pub fn new_with_policy( ctx: GeminiToClaudeContext, flow: IdentityFlow, limits: StreamLimits, policy: TargetIdPolicy, ) -> Result<Self, TransformError>
pub fn identities(&self) -> &IdentityFlow
pub fn push( &mut self, chunk: GenerateContentResponseBody, ) -> Result<Converted<Vec<StreamEvent>>, TransformError>
pub fn finish(self) -> Result<StreamEnd<StreamEvent>, TransformError>
Trait Implementations§
Source§impl StreamBridge for GeminiToClaudeStream
impl StreamBridge for GeminiToClaudeStream
type NativeEvent = GenerateContentResponseBody
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 GeminiToClaudeStream
impl RefUnwindSafe for GeminiToClaudeStream
impl Send for GeminiToClaudeStream
impl Sync for GeminiToClaudeStream
impl Unpin for GeminiToClaudeStream
impl UnsafeUnpin for GeminiToClaudeStream
impl UnwindSafe for GeminiToClaudeStream
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