pub struct StreamApiBuilder { /* private fields */ }Expand description
Builder for creating a StreamApi instance.
Implementations§
Source§impl StreamApiBuilder
impl StreamApiBuilder
Sourcepub fn new(
provider: UnauthenticatedBetfairRpcProvider,
hb: HeartbeatStrategy,
) -> Self
pub fn new( provider: UnauthenticatedBetfairRpcProvider, hb: HeartbeatStrategy, ) -> Self
Creates a new StreamApiBuilder with the specified provider and heartbeat strategy.
Sourcepub fn run_with_default_runtime(&self) -> StreamApi<ResponseMessage>
pub fn run_with_default_runtime(&self) -> StreamApi<ResponseMessage>
Runs the StreamApi with the default Tokio runtime.
Sourcepub fn run(&self, rt_handle: &Handle) -> StreamApi<ResponseMessage>
pub fn run(&self, rt_handle: &Handle) -> StreamApi<ResponseMessage>
Runs the StreamApi with the specified Tokio runtime handle.
Sourcepub fn run_with_cache(
&self,
rt_handle: &Handle,
) -> StreamApi<CacheEnabledMessages>
pub fn run_with_cache( &self, rt_handle: &Handle, ) -> StreamApi<CacheEnabledMessages>
Runs the StreamApi with caching enabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamApiBuilder
impl !RefUnwindSafe for StreamApiBuilder
impl Send for StreamApiBuilder
impl Sync for StreamApiBuilder
impl Unpin for StreamApiBuilder
impl !UnwindSafe for StreamApiBuilder
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