pub enum ClientSeverity {
    Error,
    Warning,
    Notice,
    Log,
    Debug1,
    Debug2,
    Debug3,
    Debug4,
    Debug5,
    Info,
}
Expand description

Severity levels can used to be used to filter which messages get sent to a client.

The ordering of severity levels used for client-level filtering differs from the one used for server-side logging in two aspects: INFO messages are always sent, and the LOG severity is considered as below NOTICE, while it is above ERROR for server-side logs.

Variants

Error

Sends only INFO, ERROR, FATAL and PANIC level messages.

Warning

Sends only WARNING, INFO, ERROR, FATAL and PANIC level messages.

Notice

Sends only NOTICE, WARNING, INFO, ERROR, FATAL and PANIC level messages.

Log

Sends only LOG, NOTICE, WARNING, INFO, ERROR, FATAL and PANIC level messages.

Debug1

Sends all messages to the client, since all DEBUG levels are treated as the same right now.

Debug2

Sends all messages to the client, since all DEBUG levels are treated as the same right now.

Debug3

Sends all messages to the client, since all DEBUG levels are treated as the same right now.

Debug4

Sends all messages to the client, since all DEBUG levels are treated as the same right now.

Debug5

Sends all messages to the client, since all DEBUG levels are treated as the same right now.

Info

Sends only NOTICE, WARNING, INFO, ERROR, FATAL and PANIC level messages. Not listed as a valid value, but accepted by Postgres

Implementations

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The name of the value type.

Parses a value of this type from a string.

Formats this value as a string.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more