pub struct ReplicationTask {
pub key: [u8; 32],
pub value: Bytes,
pub target_peer: PeerId,
pub priority: ReplicationPriority,
pub created_at: Instant,
pub deadline: Option<Instant>,
}Expand description
A unit of work describing data that must be sent to a remote peer.
Fields§
§key: [u8; 32]The key of the value to replicate
value: BytesThe serialised value
target_peer: PeerIdThe peer that should receive the replica
priority: ReplicationPriorityHow urgently this should be replicated
created_at: InstantWhen this task was created
deadline: Option<Instant>Optional deadline — if None, best-effort
Trait Implementations§
Source§impl Clone for ReplicationTask
impl Clone for ReplicationTask
Source§fn clone(&self) -> ReplicationTask
fn clone(&self) -> ReplicationTask
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for ReplicationTask
impl RefUnwindSafe for ReplicationTask
impl Send for ReplicationTask
impl Sync for ReplicationTask
impl Unpin for ReplicationTask
impl UnsafeUnpin for ReplicationTask
impl UnwindSafe for ReplicationTask
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