pub struct XhciController { /* private fields */ }Implementations§
Source§impl XhciController
impl XhciController
Sourcepub fn port_count(&self) -> usize
pub fn port_count(&self) -> usize
Performs the port count operation.
Sourcepub fn is_port_connected(&self, port: usize) -> bool
pub fn is_port_connected(&self, port: usize) -> bool
Returns whether port connected.
pub fn get_device_descriptor( &mut self, slot_id: u8, buf: &mut [u8; 18], ) -> Result<usize, &'static str>
pub fn get_configuration_descriptor( &mut self, slot_id: u8, config_idx: u8, buf: &mut [u8], len: usize, ) -> Result<usize, &'static str>
pub fn set_address( &mut self, slot_id: u8, address: u8, ) -> Result<(), &'static str>
pub fn set_configuration( &mut self, slot_id: u8, config_value: u8, ) -> Result<(), &'static str>
pub fn get_port_speed(&self, port: usize) -> u8
Trait Implementations§
impl Send for XhciController
impl Sync for XhciController
Auto Trait Implementations§
impl !Freeze for XhciController
impl RefUnwindSafe for XhciController
impl Unpin for XhciController
impl UnsafeUnpin for XhciController
impl UnwindSafe for XhciController
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more