pub struct Translator {
pub hub: DeviceAddress,
pub port: u8,
}Expand description
The transaction translator that carries a FS/LS device behind a high-speed hub.
The hub translates the start-split and complete-split transactions the device needs; the address and port are what a controller programs into its split-transaction registers.
Fields§
§hub: DeviceAddressAddress of the high-speed hub acting as the translator.
port: u8Port on that hub that leads to the device.
Trait Implementations§
Source§impl Clone for Translator
impl Clone for Translator
impl Copy for Translator
Source§impl Debug for Translator
impl Debug for Translator
impl Eq for Translator
Source§impl Format for Translatorwhere
DeviceAddress: Format,
impl Format for Translatorwhere
DeviceAddress: Format,
Source§impl PartialEq for Translator
impl PartialEq for Translator
impl StructuralPartialEq for Translator
Auto Trait Implementations§
impl Forget for Translator
impl Freeze for Translator
impl Move for Translator
impl RefUnwindSafe for Translator
impl Send for Translator
impl Sync for Translator
impl Unpin for Translator
impl UnsafeUnpin for Translator
impl UnwindSafe for Translator
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