pub enum EchoEvent {
Echo {
message: String,
count: u32,
},
}Expand description
Events from echo operations
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EchoEvent
impl<'de> Deserialize<'de> for EchoEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromClientError for EchoEvent
MACRO-13: EchoClient implements the Echo trait, and a client failure
ends its stream as one event. EchoEvent has no error variant (adding one
would change the wire), so the failure is an echo of its message with
count: 0 — a count no real echo has (they start at 1).
impl FromClientError for EchoEvent
MACRO-13: EchoClient implements the Echo trait, and a client failure
ends its stream as one event. EchoEvent has no error variant (adding one
would change the wire), so the failure is an echo of its message with
count: 0 — a count no real echo has (they start at 1).
Source§fn from_client_error(error: ClientError) -> Self
fn from_client_error(error: ClientError) -> Self
The event that stands for
error. It is the last item of its stream.Source§impl JsonSchema for EchoEvent
impl JsonSchema for EchoEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for EchoEvent
impl Freeze for EchoEvent
impl Move for EchoEvent
impl RefUnwindSafe for EchoEvent
impl Send for EchoEvent
impl Sync for EchoEvent
impl Unpin for EchoEvent
impl UnsafeUnpin for EchoEvent
impl UnwindSafe for EchoEvent
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