[][src]Enum cargo::util::diagnostic_server::Message

pub enum Message {
    Fixing {
        file: String,
        fixes: u32,
    },
    FixFailed {
        files: Vec<String>,
        krate: Option<String>,
        errors: Vec<String>,
    },
    ReplaceFailed {
        file: String,
        message: String,
    },
    EditionAlreadyEnabled {
        file: String,
        edition: String,
    },
    IdiomEditionMismatch {
        file: String,
        idioms: String,
        edition: Option<String>,
    },
}

Variants

Fixing

Fields of Fixing

file: Stringfixes: u32
FixFailed

Fields of FixFailed

files: Vec<String>krate: Option<String>errors: Vec<String>
ReplaceFailed

Fields of ReplaceFailed

file: Stringmessage: String
EditionAlreadyEnabled

Fields of EditionAlreadyEnabled

file: Stringedition: String
IdiomEditionMismatch

Fields of IdiomEditionMismatch

file: Stringidioms: Stringedition: Option<String>

Methods

impl Message[src]

pub fn post(&self) -> Result<(), Error>[src]

Trait Implementations

impl Serialize for Message[src]

impl<'de> Deserialize<'de> for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self