pub struct EventStream { /* private fields */ }Implementations§
Source§impl EventStream
impl EventStream
pub async fn connect(credentials: &Credentials) -> Result<Self>
pub async fn subscribe_all(&mut self) -> Result<()>
pub async fn subscribe(&mut self, event_name: &str) -> Result<()>
pub async fn unsubscribe(&mut self, event_name: &str) -> Result<()>
pub async fn next_event(&mut self) -> Result<Option<LcuEvent>>
pub async fn next_matching_event( &mut self, filter: &EventFilter, ) -> Result<Option<LcuEvent>>
pub async fn next_matching_event_as<T>(
&mut self,
filter: &EventFilter,
) -> Result<Option<T>>where
T: DeserializeOwned,
Auto Trait Implementations§
impl !Freeze for EventStream
impl !RefUnwindSafe for EventStream
impl !UnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
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