pub struct InventoryStream { /* private fields */ }Expand description
Cancellable stream of bounded inventory events.
Implementations§
Source§impl InventoryStream
impl InventoryStream
Sourcepub async fn message(&mut self) -> Option<OpcResult<InventoryEvent>>
pub async fn message(&mut self) -> Option<OpcResult<InventoryEvent>>
Wait for the next inventory event.
A failed inventory is delivered as Some(Err(_)), which is the
terminal event for the stream. A successful or cancelled inventory
ends with an InventoryEvent::Completed message.
Sourcepub fn control(&self) -> InventoryControl
pub fn control(&self) -> InventoryControl
Return a control handle for this inventory.
Trait Implementations§
Source§impl Drop for InventoryStream
impl Drop for InventoryStream
Auto Trait Implementations§
impl !RefUnwindSafe for InventoryStream
impl !UnwindSafe for InventoryStream
impl Freeze for InventoryStream
impl Send for InventoryStream
impl Sync for InventoryStream
impl Unpin for InventoryStream
impl UnsafeUnpin for InventoryStream
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