ssevents/error

Explicit error surface for ssevents.

Types

pub type SseError {
  InvalidUtf8
  LineTooLong(limit: Int)
  EventTooLarge(limit: Int)
  TooManyDataLines(limit: Int)
  InvalidRetry(String)
  InvalidField(String)
  UnexpectedEnd
  UnsupportedFeature(String)
}

Constructors

  • InvalidUtf8
  • LineTooLong(limit: Int)
  • EventTooLarge(limit: Int)
  • TooManyDataLines(limit: Int)
  • InvalidRetry(String)
  • InvalidField(String)
  • UnexpectedEnd
  • UnsupportedFeature(String)

Values

pub fn to_string(error: SseError) -> String
Search Document