pub struct Flags(/* private fields */);
Expand description
Resource flags as stored in the C struct resource::flags
field.
They can be combined with the operators |
, &
, and !
.
Values can be used from the associated constants such as
Flags::IORESOURCE_IO
.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const IORESOURCE_IO: Flags
pub const IORESOURCE_IO: Flags
PCI/ISA I/O ports.
Sourcepub const IORESOURCE_MUXED: Flags
pub const IORESOURCE_MUXED: Flags
Resource is software muxed.
Sourcepub const IORESOURCE_MEM: Flags
pub const IORESOURCE_MEM: Flags
Resource represents a memory region.
Sourcepub const IORESOURCE_MEM_NONPOSTED: Flags
pub const IORESOURCE_MEM_NONPOSTED: Flags
Resource represents a memory region that must be ioremaped using ioremap_np
.
Trait Implementations§
impl Copy for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more