Struct canadensis_core::transfer::Transfer
source · [−]Expand description
A UAVCAN transfer (either incoming or outgoing)
Fields
header: Header<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, I, T: Transport + ?Sized> Clone for Transfer<A, I, T> where
A: Clone,
I: Clone,
T::TransferId: Clone,
T::Priority: Clone,
T::NodeId: Clone,
impl<A, I, T: Transport + ?Sized> Clone for Transfer<A, I, T> where
A: Clone,
I: Clone,
T::TransferId: Clone,
T::Priority: Clone,
T::NodeId: Clone,
Auto Trait Implementations
impl<A, I, T: ?Sized> RefUnwindSafe for Transfer<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 Transfer<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 Transfer<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 Transfer<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 Transfer<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