pub struct SocketReconnectHandle { /* private fields */ }Expand description
Cloneable controller handle for requesting one raw socket reconnect.
Implementations§
Source§impl SocketReconnectHandle
impl SocketReconnectHandle
Sourcepub fn request_reconnect(&self) -> ReconnectRequestOutcome
pub fn request_reconnect(&self) -> ReconnectRequestOutcome
Requests that the controller replace the active transport.
An accepted request reports the transport unavailable and wakes the controller. Rejected requests leave the transport state unchanged.
Trait Implementations§
Source§impl Clone for SocketReconnectHandle
impl Clone for SocketReconnectHandle
Source§fn clone(&self) -> SocketReconnectHandle
fn clone(&self) -> SocketReconnectHandle
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 SocketReconnectHandle
impl !UnwindSafe for SocketReconnectHandle
impl Freeze for SocketReconnectHandle
impl Send for SocketReconnectHandle
impl Sync for SocketReconnectHandle
impl Unpin for SocketReconnectHandle
impl UnsafeUnpin for SocketReconnectHandle
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