pub struct MethodListing<'lister>(/* private fields */);Implementations§
Source§impl MethodListing<'_>
impl MethodListing<'_>
Sourcepub fn next_len(&self) -> Option<NonZeroUsize>
pub fn next_len(&self) -> Option<NonZeroUsize>
Returns the length, in bytes, of the name of the next method in the list of methods.
If there is no next entry, 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.
Sourcepub fn next<'buffer>(
&mut self,
buffer: &'buffer mut [u8],
) -> Result<Option<(&'buffer mut str, MethodAttributes)>>
pub fn next<'buffer>( &mut self, buffer: &'buffer mut [u8], ) -> Result<Option<(&'buffer mut str, MethodAttributes)>>
Returns the next method in the list of methods.
The buffer parameter identifies where to store the next method name.
If there is a next method, its name is written to buffer, a string slice referring to the
name along with the attributes are returned, and the iteration is advanced. If not, None
is returned.
§Errors
BufferTooShortis returned ifbufferis not large enough to hold the method name.
On error, the iteration does not advance.
Auto Trait Implementations§
impl<'lister> !UnwindSafe for MethodListing<'lister>
impl<'lister> Freeze for MethodListing<'lister>
impl<'lister> RefUnwindSafe for MethodListing<'lister>
impl<'lister> Send for MethodListing<'lister>
impl<'lister> Sync for MethodListing<'lister>
impl<'lister> Unpin for MethodListing<'lister>
impl<'lister> UnsafeUnpin for MethodListing<'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