pub struct WsServiceBuilder { /* private fields */ }Implementations§
Source§impl WsServiceBuilder
impl WsServiceBuilder
pub fn new(url: &str) -> Result<Self, ParseError>
pub fn new_with_url(url: Url) -> Self
pub fn build(self) -> WsService
pub fn access_token(self, access_token: String) -> Self
pub fn auto_reconnect(self, auto_reconnect: bool) -> Self
pub fn reconnect_interval(self, reconnect_interval: Duration) -> Self
pub fn max_reconnect_times(self, max_reconnect_times: u32) -> Self
Auto Trait Implementations§
impl Freeze for WsServiceBuilder
impl RefUnwindSafe for WsServiceBuilder
impl Send for WsServiceBuilder
impl Sync for WsServiceBuilder
impl Unpin for WsServiceBuilder
impl UnsafeUnpin for WsServiceBuilder
impl UnwindSafe for WsServiceBuilder
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