Enum chessground::GroundMsg [] [src]

pub enum GroundMsg {
    Flip,
    SetOrientation(Color),
    SetPos(Pos),
    SetBoard(Board),
    UserMove(SquareSquareOption<Role>),
    ShapesChanged(Vec<DrawShape>),
}

Chessground events and messages.

Variants

Flip the board.

Set the board orientation.

Set up a position configuration.

Set up a board.

Sent when the completed a piece drag or move.

Sent when shapes are added, removed or cleared.

Trait Implementations

impl Debug for GroundMsg
[src]

[src]

Formats the value using the given formatter. Read more

impl DisplayVariant for GroundMsg
[src]

[src]

Formats the current variant of the enum.

impl IntoOption<GroundMsg> for GroundMsg
[src]

Auto Trait Implementations

impl Send for GroundMsg

impl Sync for GroundMsg