Struct aldrin_core::message::SendItem
source · pub struct SendItem {
pub cookie: ChannelCookie,
pub value: SerializedValue,
}Fields§
§value: SerializedValueImplementations§
source§impl SendItem
impl SendItem
pub fn with_serialize_value<T: Serialize + ?Sized>( cookie: ChannelCookie, value: &T ) -> Result<Self, SerializeError>
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for SendItem
impl<'arbitrary> Arbitrary<'arbitrary> for SendItem
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 MessageOps for SendItem
impl MessageOps for SendItem
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 SendItem
impl PartialEq for SendItem
impl Eq for SendItem
impl StructuralEq for SendItem
impl StructuralPartialEq for SendItem
Auto Trait Implementations§
impl RefUnwindSafe for SendItem
impl Send for SendItem
impl Sync for SendItem
impl Unpin for SendItem
impl UnwindSafe for SendItem
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