pub struct ConversationMessage<Payload> { /* private fields */ }Implementations§
Source§impl<Payload> ConversationMessage<Payload>
impl<Payload> ConversationMessage<Payload>
pub const fn trace_context(&self) -> TraceContext
pub const fn payload(&self) -> &Payload
pub fn into_payload(self) -> Payload
pub fn map<NextPayload>( self, map_payload: impl FnOnce(Payload) -> NextPayload, ) -> ConversationMessage<NextPayload>
Trait Implementations§
Source§impl<Payload: Clone> Clone for ConversationMessage<Payload>
impl<Payload: Clone> Clone for ConversationMessage<Payload>
Source§fn clone(&self) -> ConversationMessage<Payload>
fn clone(&self) -> ConversationMessage<Payload>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Payload: Debug> Debug for ConversationMessage<Payload>
impl<Payload: Debug> Debug for ConversationMessage<Payload>
impl<Payload: Eq> Eq for ConversationMessage<Payload>
Source§impl<Payload: PartialEq> PartialEq for ConversationMessage<Payload>
impl<Payload: PartialEq> PartialEq for ConversationMessage<Payload>
Source§fn eq(&self, other: &ConversationMessage<Payload>) -> bool
fn eq(&self, other: &ConversationMessage<Payload>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Payload: PartialEq> StructuralPartialEq for ConversationMessage<Payload>
Auto Trait Implementations§
impl<Payload> Freeze for ConversationMessage<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for ConversationMessage<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for ConversationMessage<Payload>where
Payload: Send,
impl<Payload> Sync for ConversationMessage<Payload>where
Payload: Sync,
impl<Payload> Unpin for ConversationMessage<Payload>where
Payload: Unpin,
impl<Payload> UnsafeUnpin for ConversationMessage<Payload>where
Payload: UnsafeUnpin,
impl<Payload> UnwindSafe for ConversationMessage<Payload>where
Payload: 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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.