pub struct CognitionStream { /* private fields */ }Implementations§
Source§impl CognitionStream
impl CognitionStream
pub fn new(buffer_size: usize) -> Self
pub fn with_config(config: StreamConfig) -> Self
pub fn feed_token(&self, token: &str)
pub fn check_alerts( &self, known_facts: &[(MemoryId, String)], ) -> Vec<StreamAlert>
pub fn drain_buffer(&self) -> String
Auto Trait Implementations§
impl !Freeze for CognitionStream
impl !RefUnwindSafe for CognitionStream
impl Send for CognitionStream
impl Sync for CognitionStream
impl Unpin for CognitionStream
impl UnsafeUnpin for CognitionStream
impl UnwindSafe for CognitionStream
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