Struct aldrin_core::message::ItemReceived
source · pub struct ItemReceived {
pub cookie: ChannelCookie,
pub value: SerializedValue,
}Fields§
§value: SerializedValueImplementations§
source§impl ItemReceived
impl ItemReceived
pub fn with_serialize_value<T: Serialize + ?Sized>( cookie: ChannelCookie, value: &T ) -> Result<Self, SerializeError>
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ItemReceived
impl<'arbitrary> Arbitrary<'arbitrary> for ItemReceived
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Clone for ItemReceived
impl Clone for ItemReceived
source§fn clone(&self) -> ItemReceived
fn clone(&self) -> ItemReceived
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ItemReceived
impl Debug for ItemReceived
source§impl From<ItemReceived> for Message
impl From<ItemReceived> for Message
source§fn from(msg: ItemReceived) -> Self
fn from(msg: ItemReceived) -> Self
Converts to this type from the input type.
source§impl MessageOps for ItemReceived
impl MessageOps for ItemReceived
fn kind(&self) -> MessageKind
fn serialize_message(self) -> Result<BytesMut, MessageSerializeError>
fn deserialize_message(buf: BytesMut) -> Result<Self, MessageDeserializeError>
fn value(&self) -> Option<&SerializedValueSlice>
source§impl PartialEq for ItemReceived
impl PartialEq for ItemReceived
source§fn eq(&self, other: &ItemReceived) -> bool
fn eq(&self, other: &ItemReceived) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ItemReceived
impl StructuralEq for ItemReceived
impl StructuralPartialEq for ItemReceived
Auto Trait Implementations§
impl RefUnwindSafe for ItemReceived
impl Send for ItemReceived
impl Sync for ItemReceived
impl Unpin for ItemReceived
impl UnwindSafe for ItemReceived
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