pub struct OpenCodeParserState {
pub streaming_session: Rc<RefCell<StreamingSession>>,
pub terminal_mode: RefCell<TerminalMode>,
pub last_rendered_content: RefCell<HashMap<String, String>>,
pub fallback_step_counter: Cell<u64>,
}Fields§
§streaming_session: Rc<RefCell<StreamingSession>>§terminal_mode: RefCell<TerminalMode>§last_rendered_content: RefCell<HashMap<String, String>>§fallback_step_counter: Cell<u64>Implementations§
Source§impl OpenCodeParserState
impl OpenCodeParserState
pub fn new(verbose_warnings: bool) -> Self
pub fn with_session_mut<R>( &self, f: impl FnOnce(&mut StreamingSession) -> R, ) -> R
pub fn with_last_rendered_content_mut<R>( &self, f: impl FnOnce(&mut HashMap<String, String>) -> R, ) -> R
pub fn next_fallback_step_id( &self, session: &str, timestamp: Option<u64>, ) -> String
Auto Trait Implementations§
impl !Freeze for OpenCodeParserState
impl !RefUnwindSafe for OpenCodeParserState
impl !Send for OpenCodeParserState
impl !Sync for OpenCodeParserState
impl Unpin for OpenCodeParserState
impl UnsafeUnpin for OpenCodeParserState
impl !UnwindSafe for OpenCodeParserState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more