pub enum BauServerResponse {
Recipient {
recipient: String,
response: BauResponse,
},
InvalidData(SerializeError),
}Expand description
Types of responses that the crate::BauServer could distribute.
Variants§
Recipient
Response from each individual recipient. This variant will only apply if the BauMessage was correctly constructed and sent on to the crate::BauBot leaving crate::BauBot to handle the individual payloads and errors on a per-recipient level.
InvalidData(SerializeError)
Data was rejected by the crate::BauServer
Trait Implementations§
Source§impl Debug for BauServerResponse
impl Debug for BauServerResponse
Source§impl<'de> Deserialize<'de> for BauServerResponse
impl<'de> Deserialize<'de> for BauServerResponse
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
Auto Trait Implementations§
impl Freeze for BauServerResponse
impl RefUnwindSafe for BauServerResponse
impl Send for BauServerResponse
impl Sync for BauServerResponse
impl Unpin for BauServerResponse
impl UnwindSafe for BauServerResponse
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<T> Erasable for T
impl<T> Erasable for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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