pub enum ProbeKind {
Static {
on_probe: fn(PlatformDevice) -> Result<(), OnProbeError>,
},
Fdt {
compatibles: &'static [&'static str],
on_probe: fn(FdtInfo<'_>, PlatformDevice) -> Result<(), OnProbeError>,
},
Acpi {
ids: &'static [AcpiId],
on_probe: fn(AcpiInfo<'_>, PlatformDevice) -> Result<(), OnProbeError>,
},
Pci {
on_probe: fn(&mut EndpointRc, PlatformDevice) -> Result<(), OnProbeError>,
},
}Variants§
Static
Fields
§
on_probe: fn(PlatformDevice) -> Result<(), OnProbeError>Fdt
Fields
§
on_probe: fn(FdtInfo<'_>, PlatformDevice) -> Result<(), OnProbeError>Acpi
Fields
§
on_probe: fn(AcpiInfo<'_>, PlatformDevice) -> Result<(), OnProbeError>Pci
Fields
§
on_probe: fn(&mut EndpointRc, PlatformDevice) -> Result<(), OnProbeError>Auto Trait Implementations§
impl Freeze for ProbeKind
impl RefUnwindSafe for ProbeKind
impl Send for ProbeKind
impl Sync for ProbeKind
impl Unpin for ProbeKind
impl UnsafeUnpin for ProbeKind
impl UnwindSafe for ProbeKind
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