pub struct HyperStackBuilder { /* private fields */ }Implementations§
Source§impl HyperStackBuilder
impl HyperStackBuilder
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 async fn connect(self) -> Result<HyperStack, HyperStackError>
Trait Implementations§
Source§impl Default for HyperStackBuilder
impl Default for HyperStackBuilder
Source§fn default() -> HyperStackBuilder
fn default() -> HyperStackBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HyperStackBuilder
impl RefUnwindSafe for HyperStackBuilder
impl Send for HyperStackBuilder
impl Sync for HyperStackBuilder
impl Unpin for HyperStackBuilder
impl UnwindSafe for HyperStackBuilder
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