pub enum DataClass {
Usb2,
Gen1,
Gen2,
Gen2x2,
Usb4,
}Expand description
Data capability of a cable, in the order the standards actually arrived.
Variants§
Usb2
USB 2.0 only — 480 Mbps. The majority of bundled charging cables.
Gen1
5 Gbps (USB 3.2 Gen 1, once called USB 3.0).
Gen2
10 Gbps (USB 3.2 Gen 2).
Gen2x2
20 Gbps (USB 3.2 Gen 2x2).
Usb4
40 Gbps (USB4 / Thunderbolt 3 and 4).
Implementations§
Source§impl DataClass
impl DataClass
Sourcepub fn carries_video(self) -> bool
pub fn carries_video(self) -> bool
Whether the cable can carry a DisplayPort signal to an external monitor.
This is the single most common disappointment: a cable that charges a laptop perfectly well and shows nothing on the monitor. USB 2.0 cables lack the high-speed pairs the alternate mode needs.
Trait Implementations§
impl Copy for DataClass
impl Eq for DataClass
impl StructuralPartialEq for DataClass
Auto Trait Implementations§
impl Freeze for DataClass
impl RefUnwindSafe for DataClass
impl Send for DataClass
impl Sync for DataClass
impl Unpin for DataClass
impl UnsafeUnpin for DataClass
impl UnwindSafe for DataClass
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