pub struct PacketCopyPlanner { /* private fields */ }Expand description
Plans the runs of one export, reading each source file once however many runs it serves, and stopping when the export is cancelled.
Implementations§
Source§impl PacketCopyPlanner
impl PacketCopyPlanner
Sourcepub fn new(cancel: CancelToken) -> Self
pub fn new(cancel: CancelToken) -> Self
A planner that gives up as soon as cancel is set.
Sourcepub fn plan(
&mut self,
request: &PacketCopyRequest<'_>,
) -> Result<PacketCopyPlan, String>
pub fn plan( &mut self, request: &PacketCopyRequest<'_>, ) -> Result<PacketCopyPlan, String>
plan_packet_copy, from what this planner has read of the source.
§Errors
As plan_packet_copy, and a cancel.
Auto Trait Implementations§
impl !Send for PacketCopyPlanner
impl !Sync for PacketCopyPlanner
impl Freeze for PacketCopyPlanner
impl RefUnwindSafe for PacketCopyPlanner
impl Unpin for PacketCopyPlanner
impl UnsafeUnpin for PacketCopyPlanner
impl UnwindSafe for PacketCopyPlanner
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