cargo::util::machine_message

# Trait Message

source

    pub trait Message: Serialize {
        // Required method
        fn reason(&self) -> &str;

        // Provided method
        fn to_json_string(&self) -> String { ... }
    }

## Required Methods§

source

#### fn reason(&self) -> &str

## Provided Methods§

source

#### fn to_json_string(&self) -> String

## Object Safety§

This trait is not object safe.

## Implementors§

source§

### impl Message for BuildFinished

source§

### impl<'a> Message for Artifact<'a>

source§

### impl<'a> Message for BuildScript<'a>

source§

### impl<'a> Message for FromCompiler<'a>

source§

### impl<'a> Message for TimingInfo<'a>