pub struct HyperStackBuilder<S: Stack> { /* private fields */ }Expand description
Builder for HyperStack with custom configuration.
Implementations§
Source§impl<S: Stack> HyperStackBuilder<S>
impl<S: Stack> HyperStackBuilder<S>
pub fn url(self, url: &str) -> Self
pub fn auto_reconnect(self, enabled: bool) -> Self
pub fn reconnect_intervals(self, intervals: Vec<Duration>) -> Self
pub fn max_reconnect_attempts(self, max: u32) -> Self
pub fn ping_interval(self, interval: Duration) -> Self
pub fn initial_data_timeout(self, timeout: Duration) -> Self
pub fn max_entries_per_view(self, max: usize) -> Self
pub fn unlimited_entries(self) -> Self
pub async fn connect(self) -> Result<HyperStack<S>, HyperStackError>
Auto Trait Implementations§
impl<S> Freeze for HyperStackBuilder<S>
impl<S> RefUnwindSafe for HyperStackBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for HyperStackBuilder<S>
impl<S> Sync for HyperStackBuilder<S>
impl<S> Unpin for HyperStackBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for HyperStackBuilder<S>where
S: UnwindSafe,
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