Enum gelf_logger::Error
source · pub enum Error {
FullChannelError(Event),
ChannelDisconnectedError(Event),
IOError(Error),
JsonSerializerError(Error),
LogError(SetLoggerError),
TLSError(HandshakeError<TcpStream>),
ValueSerializerError(SerializerError),
YamlError(Error),
}
Expand description
Enum to represent errors
Variants§
FullChannelError(Event)
Error raised when the channel gets disconnect or the async buffer is full
ChannelDisconnectedError(Event)
Error raised if the program failed to send a record into the channel.
IOError(Error)
Error raised if the output failed to write in the TCP socket.
JsonSerializerError(Error)
Error while JSON serialization.
LogError(SetLoggerError)
Error raised is the program failed to initialize the logger.
TLSError(HandshakeError<TcpStream>)
Error on TLS initialization.
ValueSerializerError(SerializerError)
Invalid value
YamlError(Error)
Invalid yaml content
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SerializerError> for Error
impl From<SerializerError> for Error
source§fn from(err: SerializerError) -> Error
fn from(err: SerializerError) -> Error
Converts to this type from the input type.
source§impl From<SetLoggerError> for Error
impl From<SetLoggerError> for Error
source§fn from(err: SetLoggerError) -> Error
fn from(err: SetLoggerError) -> Error
Converts to this type from the input type.
source§impl From<TrySendError<Event>> for Error
impl From<TrySendError<Event>> for Error
source§fn from(err: TrySendError<Event>) -> Error
fn from(err: TrySendError<Event>) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more