pub struct DraftPuller<S> { /* private fields */ }Expand description
One serialized owner. Borrow its machine credential for each told pull; nothing here holds a person’s session or starts work in the background.
Implementations§
Source§impl<S: AtomicDraftStore> DraftPuller<S>
impl<S: AtomicDraftStore> DraftPuller<S>
Sourcepub fn new(
issuer: &str,
store: S,
limits: DraftLimits,
) -> Result<Self, DraftError>
pub fn new( issuer: &str, store: S, limits: DraftLimits, ) -> Result<Self, DraftError>
Connects only to the configured issuer; redirects and environment proxies cannot route its machine credential elsewhere.
§Errors
The issuer or HTTP client could not be constructed.
Sourcepub async fn pull(
&mut self,
connector_pass: &str,
signal: PullSignal,
at_ms: u64,
) -> Result<PullReport, DraftError>
pub async fn pull( &mut self, connector_pass: &str, signal: PullSignal, at_ms: u64, ) -> Result<PullReport, DraftError>
Pulls and closes approved drafts only on an explicit signal. An error ends the pull; a later caller may reuse the durable receipt. No automatic retry is scheduled. The target store revalidates stale prepared acts.
§Errors
Lys, immutable contract, configured bounds, target storage or delivery.
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for DraftPuller<S>
impl<S> !UnwindSafe for DraftPuller<S>
impl<S> Freeze for DraftPuller<S>where
DraftExecutor<S>: Freeze,
impl<S> Send for DraftPuller<S>where
DraftExecutor<S>: Send,
impl<S> Sync for DraftPuller<S>where
DraftExecutor<S>: Sync,
impl<S> Unpin for DraftPuller<S>where
DraftExecutor<S>: Unpin,
impl<S> UnsafeUnpin for DraftPuller<S>where
DraftExecutor<S>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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