pub struct InventoryControl { /* private fields */ }Expand description
Control handle for a running inventory.
Implementations§
Source§impl InventoryControl
impl InventoryControl
Sourcepub fn set_pacing(&self, pacing: InventoryPacing)
pub fn set_pacing(&self, pacing: InventoryPacing)
Replace the pacing applied before the next bounded native operation.
Updates are observed by a running inventory without restarting it.
Sourcepub fn pacing(&self) -> InventoryPacing
pub fn pacing(&self) -> InventoryPacing
Return the pacing currently applied to this inventory.
Sourcepub fn set_batch_size(&self, batch_size: u32) -> OpcResult<()>
pub fn set_batch_size(&self, batch_size: u32) -> OpcResult<()>
Replace the batch size used for the next inventory slice.
The value must be between 1 and MAX_INVENTORY_BATCH_SIZE.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Return whether cancellation has been requested.
Trait Implementations§
Source§impl Clone for InventoryControl
impl Clone for InventoryControl
Source§fn clone(&self) -> InventoryControl
fn clone(&self) -> InventoryControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InventoryControl
impl RefUnwindSafe for InventoryControl
impl Send for InventoryControl
impl Sync for InventoryControl
impl Unpin for InventoryControl
impl UnsafeUnpin for InventoryControl
impl UnwindSafe for InventoryControl
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