Struct gelf::TcpBackend

source ·
pub struct TcpBackend { /* private fields */ }
Expand description

TcpBackend is a simple GELF over TCP backend.

WireMessages are simply serialized and optionally compressed and pushed to a Gelf host over TCP. TCP’s stream-based nature requires no chunking.

Implementations

Construct a new TcpBackend.

Return the current set compression algorithm

Set the compression algorithm

Trait Implementations

Log a message over TCP.

Try to close the connection gracefully when TcpBackend goes out of scope

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

Returns the argument unchanged.

Calls U::from(self).

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

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.