pub enum CommandPermissions {
NoPermsAtAll,
NoPermsThisDriver,
Mask(u64),
}
Expand description
The command permissions specified by the TBF header.
Use the get_command_permissions()
function to retrieve these.
Variants§
NoPermsAtAll
The TBF header did not specify any permissions for any driver numbers.
NoPermsThisDriver
The TBF header did specify permissions for at least one driver number, but not for the requested driver number.
Mask(u64)
The bitmask of allowed command numbers starting from the offset provided when this enum was created.
Auto Trait Implementations§
impl Freeze for CommandPermissions
impl RefUnwindSafe for CommandPermissions
impl Send for CommandPermissions
impl Sync for CommandPermissions
impl Unpin for CommandPermissions
impl UnwindSafe for CommandPermissions
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