pub struct WebSocketReconnectHandle { /* private fields */ }Expand description
Cloneable controller handle for requesting one transport reconnect.
Implementations§
Source§impl WebSocketReconnectHandle
impl WebSocketReconnectHandle
Sourcepub fn request_reconnect(&self) -> ReconnectRequestOutcome
pub fn request_reconnect(&self) -> ReconnectRequestOutcome
Requests that the controller replace the active transport.
An accepted request invalidates registered authentication state, wakes the controller, and
publishes the loss before the replacement can become active. Rejected requests leave the
transport and authentication state unchanged. Handler-mode handles return
ReconnectRequestOutcome::Closed after the client drops; stream-mode handles always
return ReconnectRequestOutcome::Unsupported.
Trait Implementations§
Source§impl Clone for WebSocketReconnectHandle
impl Clone for WebSocketReconnectHandle
Source§fn clone(&self) -> WebSocketReconnectHandle
fn clone(&self) -> WebSocketReconnectHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WebSocketReconnectHandle
impl !UnwindSafe for WebSocketReconnectHandle
impl Freeze for WebSocketReconnectHandle
impl Send for WebSocketReconnectHandle
impl Sync for WebSocketReconnectHandle
impl Unpin for WebSocketReconnectHandle
impl UnsafeUnpin for WebSocketReconnectHandle
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