pub enum PlaygroundViewsMessage {
TimedOut,
Registered(Uuid),
ExerciseTaskGradingResult(ExerciseTaskGradingResult),
}
Expand description
The message type for all messages sent from the server to the client from the playgrounds-views websocket connection.
Variants§
TimedOut
Server did not receive a pong for a certain period so the connection timed out.
Registered(Uuid)
Server accepted a new websocket connection and is informing the new client of their connection id.
ExerciseTaskGradingResult(ExerciseTaskGradingResult)
Server received an updated grading from an exercise service and is passing it on to the client.
Trait Implementations§
Source§impl Debug for PlaygroundViewsMessage
impl Debug for PlaygroundViewsMessage
Source§impl Message for PlaygroundViewsMessage
impl Message for PlaygroundViewsMessage
Auto Trait Implementations§
impl Freeze for PlaygroundViewsMessage
impl RefUnwindSafe for PlaygroundViewsMessage
impl Send for PlaygroundViewsMessage
impl Sync for PlaygroundViewsMessage
impl Unpin for PlaygroundViewsMessage
impl UnwindSafe for PlaygroundViewsMessage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more