Struct oc_wasm_safe::component::Listing
source · pub struct Listing<'lister>(/* private fields */);
Expand description
An in-progress component listing.
The 'lister
lifetime parameter is the lifetime of the component lister that is performing the
listing.
Implementations§
source§impl<'lister> Listing<'lister>
impl<'lister> Listing<'lister>
sourcepub fn next<'listing>(
&'listing mut self
) -> Option<ListEntry<'listing, 'lister>>
pub fn next<'listing>( &'listing mut self ) -> Option<ListEntry<'listing, 'lister>>
Returns the next entry in the list of components.
If there is a next entry, its UUID is return. If not, None
is returned.
§Panics
- This function panics if the underlying syscall fails, because the only reasons it could fail should be impossible due to the type system.
- This function panics if there is a mismatch between OC-Wasm-safe’s and OpenComputers’s ideas of the length or formatting of a component address.
Auto Trait Implementations§
impl<'lister> Freeze for Listing<'lister>
impl<'lister> RefUnwindSafe for Listing<'lister>
impl<'lister> Send for Listing<'lister>
impl<'lister> Sync for Listing<'lister>
impl<'lister> Unpin for Listing<'lister>
impl<'lister> !UnwindSafe for Listing<'lister>
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