pub enum ListingItem {
Object(ObjectInfo),
Skipped(SkippedObject),
}Expand description
One item from an ObjectListing.
The streaming and collecting APIs sit over the same stream, so they agree on what a per-object
failure means: this enum is the streaming half of the ObjectCollection split.
Variants§
Object(ObjectInfo)
An object whose metadata the device returned.
Skipped(SkippedObject)
A handle the device refused, safely enough that the rest of the listing continues.
Implementations§
Source§impl ListingItem
impl ListingItem
Sourcepub fn object(self) -> Option<ObjectInfo>
pub fn object(self) -> Option<ObjectInfo>
The object, or None if this item was skipped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListingItem
impl RefUnwindSafe for ListingItem
impl Send for ListingItem
impl Sync for ListingItem
impl Unpin for ListingItem
impl UnsafeUnpin for ListingItem
impl UnwindSafe for ListingItem
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