Men Rust-da kuzatuvchi namunasi amalga oshirilishini taqdim eta olaman. Avval, keling, RxRust kutubxonasidan BehaviorSubject-ni o'z ichiga olgan Subject strukturasini yarataylik: rxRust rxrust:: prelude:: *; pub struct Subject { inner: BehaviorSubject<i32>, } implement Subject { pub fn new initial_value: i32) -> Self { Self { inner: BehaviorSubject:: new initial_value), } pub fn get_observable_&self -> Observable<i32> { self.inner.clone.in) } fn set pub_value&self, value: i32) { self.inner.next.next; } } Bu yerda biz Subjectni uchta yangi usul bilan aniqlaymiz: rx
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence