#[non_exhaustive]pub enum ResponseStreamError {
Flat(ResponseErrorEvent),
Nested(ResponseNestedErrorEvent),
}Expand description
HTTP Responses uses flat errors; the Codex backend also emits nested errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Flat(ResponseErrorEvent)
Nested(ResponseNestedErrorEvent)
Implementations§
Source§impl ResponseStreamError
impl ResponseStreamError
pub fn sequence_number(&self) -> i64
Trait Implementations§
Source§impl Clone for ResponseStreamError
impl Clone for ResponseStreamError
Source§impl Debug for ResponseStreamError
impl Debug for ResponseStreamError
Source§impl DeclaredFields for ResponseStreamError
impl DeclaredFields for ResponseStreamError
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseStreamError
impl<'de> Deserialize<'de> for ResponseStreamError
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResponseStreamError
Source§impl From<ResponseErrorEvent> for ResponseStreamError
impl From<ResponseErrorEvent> for ResponseStreamError
Source§fn from(event: ResponseErrorEvent) -> Self
fn from(event: ResponseErrorEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseStreamError
impl PartialEq for ResponseStreamError
Source§impl Serialize for ResponseStreamError
impl Serialize for ResponseStreamError
impl StructuralPartialEq for ResponseStreamError
Auto Trait Implementations§
impl Freeze for ResponseStreamError
impl RefUnwindSafe for ResponseStreamError
impl Send for ResponseStreamError
impl Sync for ResponseStreamError
impl Unpin for ResponseStreamError
impl UnsafeUnpin for ResponseStreamError
impl UnwindSafe for ResponseStreamError
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