Enum aws_smithy_types::event_stream::RawMessage
source · #[non_exhaustive]pub enum RawMessage {
Decoded(Message),
Invalid(Option<Bytes>),
}
Expand description
Raw message from an event stream receiver when a response error is encountered.
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.
Decoded(Message)
Message was decoded into a valid frame, but failed to unmarshall into a modeled type.
Invalid(Option<Bytes>)
Message failed to be decoded into a valid frame. The raw bytes may not be available in the case where decoding consumed the buffer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawMessage
impl RefUnwindSafe for RawMessage
impl Send for RawMessage
impl Sync for RawMessage
impl Unpin for RawMessage
impl UnwindSafe for RawMessage
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