Function oc_wasm_safe::computer::acl_next[][src]

pub fn acl_next(buffer: &mut [u8]) -> Result<Option<&mut str>>
Expand description

Returns the Minecraft username of the next allowed user in the ACL.

The buffer parameter identifies where to store the next username.

If there is a next entry, the username is written to buffer, a string slice referring to it is returned, and the iteration is advanced. If not, None is returned.

Errors

  • BufferTooShort is returned if buffer is not large enough to hold the component UUID.

On error, the iteration does not advance.