pub enum Malformed {
NotJson,
NoType,
Binary,
DeltaNotBase64 {
response: String,
},
DeltaMissing {
response: String,
},
AudioDoneWithoutResponseId,
}Expand description
One frame the peer sends that no one can read as an event (§5.3, ORB-13 and ORB-18).
Each variant is one row of the read-set rule, and each is a real frame on the wire rather than an error injected into the client.
Variants§
NotJson
not json{ — a text frame that is not JSON at all.
NoType
A JSON object with no type member.
Binary
A binary frame. Every event in this contract is a JSON text frame.
DeltaNotBase64
A response.output_audio.delta whose delta is not base64!!.
DeltaMissing
A response.output_audio.delta with no delta member at all.
AudioDoneWithoutResponseId
A response.output_audio.done with no response_id.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Malformed
impl RefUnwindSafe for Malformed
impl Send for Malformed
impl Sync for Malformed
impl Unpin for Malformed
impl UnsafeUnpin for Malformed
impl UnwindSafe for Malformed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more