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§
source§impl PartialEq for Flags
impl PartialEq for Flags
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> 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