pub struct PacketCopyPlanner { /* private fields */ }Expand description
Plans the runs of one export, reading each source once and stopping on cancel.
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 !RefUnwindSafe for PacketCopyPlanner
impl !Send for PacketCopyPlanner
impl !Sync for PacketCopyPlanner
impl !UnwindSafe for PacketCopyPlanner
impl Forget for PacketCopyPlanner
impl Freeze for PacketCopyPlannerwhere
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(SourceLocation, SourceFacts)>: Freeze,
impl Move for PacketCopyPlanner
impl Unpin for PacketCopyPlanner
impl UnsafeUnpin for PacketCopyPlannerwhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(SourceLocation, SourceFacts)>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more