pub enum Message<Response> {
Response {
id: u64,
response: Response,
},
Aborted,
Shutdown,
}Expand description
Producer message.
Variants§
Response
Response to request.
Aborted
Producer was shutdown with ShutdownType::Aborted.
Shutdown
Producer was shutdown with ShutdownType::Shutdown.
Trait Implementations§
Source§impl<'de, Response> Deserialize<'de> for Message<Response>where
Response: Deserialize<'de>,
impl<'de, Response> Deserialize<'de> for Message<Response>where
Response: Deserialize<'de>,
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<Response> Freeze for Message<Response>where
Response: Freeze,
impl<Response> RefUnwindSafe for Message<Response>where
Response: RefUnwindSafe,
impl<Response> Send for Message<Response>where
Response: Send,
impl<Response> Sync for Message<Response>where
Response: Sync,
impl<Response> Unpin for Message<Response>where
Response: Unpin,
impl<Response> UnsafeUnpin for Message<Response>where
Response: UnsafeUnpin,
impl<Response> UnwindSafe for Message<Response>where
Response: UnwindSafe,
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