pub enum Msg {
    Info,
    Alert {
        msg: String,
        fatal: bool,
    },
    LoadProgress(LoadInfo),
    AllocStats(AllocStats),
    DoneLoading,
    Charts(ChartsMsg),
    Filters(FiltersMsg),
    FilterStats(AllFilterStats),
}
Expand description

Messages from the server to the client.

Variants

Info

Info about the current allocation data.

Alert

Fields

msg: String

Alert message.

fatal: bool

True if the error is fatal.

An alert.

LoadProgress(LoadInfo)

Loading progress.

Sent by the server when it is loading data, i.e. not ready to actually produce charts yet.

AllocStats(AllocStats)

Allocation statistics.

DoneLoading

Sent by the server when it is done loading dumps.

Charts(ChartsMsg)

A message for the charts.

Filters(FiltersMsg)

A filter operation.

FilterStats(AllFilterStats)

Some filter statistics.

Implementations

Constructor for Info.

Constructor for Alert.

Constructor for chart messages.

Constructor for a load progress message.

Constructor for an allocation-statistics message.

Constructor for a filter-statistics message.

Encodes the message as bytes.

Decodes the message from bytes.

True if the message is a minor message.

Minor messages are all messages that do not act on charts or filters directly.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.