pub enum Output<T> {
Done(T),
ConnectionClosed,
AxumError(Error),
WsdomError(Error),
}
Expand description
Output type of ToBrowserFuture.
Variants§
Done(T)
The inner function (the second argument passed to socket_to_browser
) completed with this result.
ConnectionClosed
The WebSocket connection was closed, for whatever reason.
AxumError(Error)
Axum raised an error.
WsdomError(Error)
WSDOM raised an error.
Auto Trait Implementations§
impl<T> Freeze for Output<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Output<T>
impl<T> Send for Output<T>where
T: Send,
impl<T> Sync for Output<T>where
T: Sync,
impl<T> Unpin for Output<T>where
T: Unpin,
impl<T> !UnwindSafe for Output<T>
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