pub enum Event {
Attached(Device),
Detached {
hub_address: u8,
port: u8,
address: u8,
},
}Available on non-crate feature
bcm2712 only.Expand description
What a Bus found happening, handed to the callback of
Bus::enumerate and Bus::poll.
Variants§
Attached(Device)
A device was brought up: reset, addressed, and ready to talk to.
Detached
A device is gone — the port it was on no longer reports it connected. Its address has already been freed and may be handed to something else on the next attach, so a driver holding this device should stop using it here rather than later.
Unplugging a hub reports every device that was behind it, deepest first, and the hub itself last.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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