Struct canadensis_core::transfer::MessageTransfer
source · [−]pub struct MessageTransfer<A, I, T: Transport + ?Sized> {
pub header: MessageHeader<I, T>,
pub payload: A,
}
Expand description
A type of transfer that is always a message transfer
Fields
header: MessageHeader<I, T>
The transfer header
payload: A
The actual transfer payload
The type A usually implements AsRef<[u8]>
. It is often a Vec<u8>
or a &[u8]
.
Trait Implementations
sourceimpl<A: Clone, I: Clone, T: Clone + Transport + ?Sized> Clone for MessageTransfer<A, I, T>
impl<A: Clone, I: Clone, T: Clone + Transport + ?Sized> Clone for MessageTransfer<A, I, T>
sourcefn clone(&self) -> MessageTransfer<A, I, T>
fn clone(&self) -> MessageTransfer<A, I, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A, I, T: Transport + ?Sized> Debug for MessageTransfer<A, I, T> where
A: Debug,
I: Debug,
impl<A, I, T: Transport + ?Sized> Debug for MessageTransfer<A, I, T> where
A: Debug,
I: Debug,
sourceimpl<A, I, T: Transport + ?Sized> PartialEq<MessageTransfer<A, I, T>> for MessageTransfer<A, I, T> where
A: PartialEq,
I: PartialEq,
T::TransferId: PartialEq,
T::Priority: PartialEq,
T::NodeId: PartialEq,
impl<A, I, T: Transport + ?Sized> PartialEq<MessageTransfer<A, I, T>> for MessageTransfer<A, I, T> where
A: PartialEq,
I: PartialEq,
T::TransferId: PartialEq,
T::Priority: PartialEq,
T::NodeId: PartialEq,
Auto Trait Implementations
impl<A, I, T: ?Sized> RefUnwindSafe for MessageTransfer<A, I, T> where
A: RefUnwindSafe,
I: RefUnwindSafe,
<T as Transport>::NodeId: RefUnwindSafe,
<T as Transport>::Priority: RefUnwindSafe,
<T as Transport>::TransferId: RefUnwindSafe,
impl<A, I, T: ?Sized> Send for MessageTransfer<A, I, T> where
A: Send,
I: Send,
<T as Transport>::NodeId: Send,
<T as Transport>::Priority: Send,
<T as Transport>::TransferId: Send,
impl<A, I, T: ?Sized> Sync for MessageTransfer<A, I, T> where
A: Sync,
I: Sync,
<T as Transport>::NodeId: Sync,
<T as Transport>::Priority: Sync,
<T as Transport>::TransferId: Sync,
impl<A, I, T: ?Sized> Unpin for MessageTransfer<A, I, T> where
A: Unpin,
I: Unpin,
<T as Transport>::NodeId: Unpin,
<T as Transport>::Priority: Unpin,
<T as Transport>::TransferId: Unpin,
impl<A, I, T: ?Sized> UnwindSafe for MessageTransfer<A, I, T> where
A: UnwindSafe,
I: UnwindSafe,
<T as Transport>::NodeId: UnwindSafe,
<T as Transport>::Priority: UnwindSafe,
<T as Transport>::TransferId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more