pub struct RocketLeagueStatsClient { /* private fields */ }Implementations§
Source§impl RocketLeagueStatsClient
impl RocketLeagueStatsClient
pub async fn connect(options: ClientOptions) -> Result<Self, RlStatsError>
pub fn connection(&self) -> &ConnectionConfig
pub async fn connect_with_retry( options: ClientOptions, max_attempts: usize, retry_delay: Duration, ) -> Result<Self, RlStatsError>
pub async fn reconnect(&mut self) -> Result<(), RlStatsError>
pub async fn next_event(&mut self) -> Result<Option<StatsEvent>, RlStatsError>
pub async fn next_filtered_event( &mut self, filter: &EventFilter, ) -> Result<Option<StatsEvent>, RlStatsError>
pub fn into_event_stream( self, ) -> impl Stream<Item = Result<StatsEvent, RlStatsError>>
pub fn into_filtered_event_stream( self, filter: EventFilter, ) -> impl Stream<Item = Result<StatsEvent, RlStatsError>>
pub async fn close(self) -> Result<(), RlStatsError>
Auto Trait Implementations§
impl Freeze for RocketLeagueStatsClient
impl RefUnwindSafe for RocketLeagueStatsClient
impl Send for RocketLeagueStatsClient
impl Sync for RocketLeagueStatsClient
impl Unpin for RocketLeagueStatsClient
impl UnsafeUnpin for RocketLeagueStatsClient
impl UnwindSafe for RocketLeagueStatsClient
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