pub enum TargetMode {
Usb,
Port(Option<u16>),
PortClose,
}Expand description
Target transport mode accepted by tmode.
Variants§
Usb
Switch target to USB mode.
Port(Option<u16>)
Switch target to TCP port mode. None renders tmode port.
PortClose
Close TCP port mode.
Trait Implementations§
Source§impl Clone for TargetMode
impl Clone for TargetMode
Source§fn clone(&self) -> TargetMode
fn clone(&self) -> TargetMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetMode
impl Debug for TargetMode
impl Eq for TargetMode
Source§impl PartialEq for TargetMode
impl PartialEq for TargetMode
impl StructuralPartialEq for TargetMode
Auto Trait Implementations§
impl Freeze for TargetMode
impl RefUnwindSafe for TargetMode
impl Send for TargetMode
impl Sync for TargetMode
impl Unpin for TargetMode
impl UnsafeUnpin for TargetMode
impl UnwindSafe for TargetMode
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