Struct canadensis::core::transfer::ServiceTransfer
source · [−]pub struct ServiceTransfer<A, I, T> where
T: Transport + ?Sized, {
pub header: ServiceHeader<I, T>,
pub payload: A,
}
Expand description
A type of transfer that is always a service request or response
Fields
header: ServiceHeader<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> Clone for ServiceTransfer<A, I, T> where
A: Clone,
I: Clone,
T: Clone + Transport + ?Sized,
impl<A, I, T> Clone for ServiceTransfer<A, I, T> where
A: Clone,
I: Clone,
T: Clone + Transport + ?Sized,
sourcefn clone(&self) -> ServiceTransfer<A, I, T>
fn clone(&self) -> ServiceTransfer<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> Debug for ServiceTransfer<A, I, T> where
T: Transport + ?Sized,
A: Debug,
I: Debug,
impl<A, I, T> Debug for ServiceTransfer<A, I, T> where
T: Transport + ?Sized,
A: Debug,
I: Debug,
sourceimpl<A, I, T> PartialEq<ServiceTransfer<A, I, T>> for ServiceTransfer<A, I, T> where
T: Transport + ?Sized,
A: PartialEq<A>,
I: PartialEq<I>,
<T as Transport>::TransferId: PartialEq<<T as Transport>::TransferId>,
<T as Transport>::Priority: PartialEq<<T as Transport>::Priority>,
<T as Transport>::NodeId: PartialEq<<T as Transport>::NodeId>,
impl<A, I, T> PartialEq<ServiceTransfer<A, I, T>> for ServiceTransfer<A, I, T> where
T: Transport + ?Sized,
A: PartialEq<A>,
I: PartialEq<I>,
<T as Transport>::TransferId: PartialEq<<T as Transport>::TransferId>,
<T as Transport>::Priority: PartialEq<<T as Transport>::Priority>,
<T as Transport>::NodeId: PartialEq<<T as Transport>::NodeId>,
Auto Trait Implementations
impl<A, I, T: ?Sized> RefUnwindSafe for ServiceTransfer<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 ServiceTransfer<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 ServiceTransfer<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 ServiceTransfer<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 ServiceTransfer<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