Skip to content

Signals with Enums? #356

Answered by floric
floric asked this question in Q&A
Discussion options

You must be logged in to vote

I also found the solution here :)

We need to implement Clone by deriving or implementing it. For me, deriving was enough:

#[derive(Clone)]
pub enum Notification {
    Success(String),
    Warning(String),
    Error(String),
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by floric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant