Enum usbd_human_interface_device::page::Consumer

source ·
#[repr(u16)]
pub enum Consumer {
Show 365 variants Unassigned = 0, ConsumerControl = 1, NumericKeyPad = 2, ProgrammableButtons = 3, Microphone = 4, Headphone = 5, GraphicEqualizer = 6, Plus10 = 32, Plus100 = 33, AmPm = 34, Power = 48, Reset = 49, Sleep = 50, SleepAfter = 51, SleepMode = 52, Illumination = 53, FunctionButtons = 54, Menu = 64, MenuPick = 65, MenuUp = 66, MenuDown = 67, MenuLeft = 68, MenuRight = 69, MenuEscape = 70, MenuValueIncrease = 71, MenuValueDecrease = 72, DataOnScreen = 96, ClosedCaption = 97, ClosedCaptionSelect = 98, VcrTv = 99, BroadcastMode = 100, Snapshot = 101, Still = 102, Selection = 128, AssignSelection = 129, ModeStep = 130, RecallLast = 131, EnterChannel = 132, OrderMovie = 133, Channel = 134, MediaSelection = 135, MediaSelectComputer = 136, MediaSelectTV = 137, MediaSelectWWW = 138, MediaSelectDVD = 139, MediaSelectTelephone = 140, MediaSelectProgramGuide = 141, MediaSelectVideoPhone = 142, MediaSelectGames = 143, MediaSelectMessages = 144, MediaSelectCD = 145, MediaSelectVCR = 146, MediaSelectTuner = 147, Quit = 148, Help = 149, MediaSelectTape = 150, MediaSelectCable = 151, MediaSelectSatellite = 152, MediaSelectSecurity = 153, MediaSelectHome = 154, MediaSelectCall = 155, ChannelIncrement = 156, ChannelDecrement = 157, MediaSelectSAP = 158, VCRPlus = 160, Once = 161, Daily = 162, Weekly = 163, Monthly = 164, Play = 176, Pause = 177, Record = 178, FastForward = 179, Rewind = 180, ScanNextTrack = 181, ScanPreviousTrack = 182, Stop = 183, Eject = 184, RandomPlay = 185, SelectDisc = 186, EnterDisc = 187, Repeat = 188, Tracking = 189, TrackNormal = 190, SlowTracking = 191, FrameForward = 192, FrameBack = 193, Mark = 194, ClearMark = 195, RepeatFromMark = 196, ReturnToMark = 197, SearchMarkForward = 198, SearchMarkBackwards = 199, CounterReset = 200, ShowCounter = 201, TrackingIncrement = 202, TrackingDecrement = 203, StopEject = 204, PlayPause = 205, PlaySkip = 206, Volume = 224, Balance = 225, Mute = 226, Bass = 227, Treble = 228, BassBoost = 229, SurroundMode = 230, Loudness = 231, MPX = 232, VolumeIncrement = 233, VolumeDecrement = 234, SpeedSelect = 240, PlaybackSpeed = 241, StandardPlay = 242, LongPlay = 243, ExtendedPlay = 244, Slow = 245, FanEnable = 256, FanSpeed = 257, LightEnable = 258, LightIlluminationLevel = 259, ClimateControlEnable = 260, RoomTemperature = 261, SecurityEnable = 262, FireAlarm = 263, PoliceAlarm = 264, Proximity = 265, Motion = 266, DuressAlarm = 267, HoldupAlarm = 268, MedicalAlarm = 269, BalanceRight = 336, BalanceLeft = 337, BassIncrement = 338, BassDecrement = 339, TrebleIncrement = 340, TrebleDecrement = 341, SpeakerSystem = 352, ChannelLeft = 353, ChannelRight = 354, ChannelCenter = 355, ChannelFront = 356, ChannelCenterFront = 357, ChannelSide = 358, ChannelSurround = 359, ChannelLowFrequencyEnhancement = 360, ChannelTop = 361, ChannelUnknown = 362, SubChannel = 368, SubChannelIncrement = 369, SubChannelDecrement = 370, AlternateAudioIncrement = 371, AlternateAudioDecrement = 372, ApplicationLaunchButtons = 384, ALLaunchButtonConfigurationTool = 385, ALProgrammableButtonConfiguration = 386, ALConsumerControlConfiguration = 387, ALWordProcessor = 388, ALTextEditor = 389, ALSpreadsheet = 390, ALGraphicsEditor = 391, ALPresentationApp = 392, ALDatabaseApp = 393, ALEmailReader = 394, ALNewsreader = 395, ALVoicemail = 396, ALContactsAddressBook = 397, ALCalendarSchedule = 398, ALTaskProjectManager = 399, ALLogJournalTimecard = 400, ALCheckbookFinance = 401, ALCalculator = 402, ALAvCapturePlayback = 403, ALLocalMachineBrowser = 404, ALLanWanBrowser = 405, ALInternetBrowser = 406, ALRemoteNetworkingISPConnect = 407, ALNetworkConference = 408, ALNetworkChat = 409, ALTelephonyDialer = 410, ALLogon = 411, ALLogoff = 412, ALLogonLogoff = 413, ALTerminalLockScreensaver = 414, ALControlPanel = 415, ALCommandLineProcessorRun = 416, ALProcessTaskManager = 417, ALSelectTaskApplication = 418, ALNextTaskApplication = 419, ALPreviousTaskApplication = 420, ALPreemptiveHaltTaskApplication = 421, ALIntegratedHelpCenter = 422, ALDocuments = 423, ALThesaurus = 424, ALDictionary = 425, ALDesktop = 426, ALSpellCheck = 427, ALGrammarCheck = 428, ALWirelessStatus = 429, ALKeyboardLayout = 430, ALVirusProtection = 431, ALEncryption = 432, ALScreenSaver = 433, ALAlarms = 434, ALClock = 435, ALFileBrowser = 436, ALPowerStatus = 437, ALImageBrowser = 438, ALAudioBrowser = 439, ALMovieBrowser = 440, ALDigitalRightsManager = 441, ALDigitalWallet = 442, ALInstantMessaging = 444, ALOemFeaturesTipsTutorialBrowser = 445, ALOemHelp = 446, ALOnlineCommunity = 447, ALEntertainmentContentBrowser = 448, ALOnlineShoppingBrowser = 449, ALSmartCardInformationHelp = 450, ALMarketMonitorFinanceBrowser = 451, ALCustomizedCorporateNewsBrowser = 452, ALOnlineActivityBrowser = 453, ALResearchSearchBrowser = 454, ALAudioPlayer = 455, GenericGUIApplicationControls = 512, ACNew = 513, ACOpen = 514, ACClose = 515, ACExit = 516, ACMaximize = 517, ACMinimize = 518, ACSave = 519, ACPrint = 520, ACProperties = 521, ACUndo = 538, ACCopy = 539, ACCut = 540, ACPaste = 541, ACSelectAll = 542, ACFind = 543, ACFindAndReplace = 544, ACSearch = 545, ACGoTo = 546, ACHome = 547, ACBack = 548, ACForward = 549, ACStop = 550, ACRefresh = 551, ACPreviousLink = 552, ACNextLink = 553, ACBookmarks = 554, ACHistory = 555, ACSubscriptions = 556, ACZoomIn = 557, ACZoomOut = 558, ACZoom = 559, ACFullScreenView = 560, ACNormalView = 561, ACViewToggle = 562, ACScrollUp = 563, ACScrollDown = 564, ACScroll = 565, ACPanLeft = 566, ACPanRight = 567, ACPan = 568, ACNewWindow = 569, ACTileHorizontally = 570, ACTileVertically = 571, ACFormat = 572, ACEdit = 573, ACBold = 574, ACItalics = 575, ACUnderline = 576, ACStrikethrough = 577, ACSubscript = 578, ACSuperscript = 579, ACAllCaps = 580, ACRotate = 581, ACResize = 582, ACFlipHorizontal = 583, ACFlipVertical = 584, ACMirrorHorizontal = 585, ACMirrorVertical = 586, ACFontSelect = 587, ACFontColor = 588, ACFontSize = 589, ACJustifyLeft = 590, ACJustifyCenterH = 591, ACJustifyRight = 592, ACJustifyBlockH = 593, ACJustifyTop = 594, ACJustifyCenterV = 595, ACJustifyBottom = 596, ACJustifyBlockV = 597, ACIndentDecrease = 598, ACIndentIncrease = 599, ACNumberedList = 600, ACRestartNumbering = 601, ACBulletedList = 602, ACPromote = 603, ACDemote = 604, ACYes = 605, ACNo = 606, ACCancel = 607, ACCatalog = 608, ACBuyCheckout = 609, ACAddToCart = 610, ACExpand = 611, ACExpandAll = 612, ACCollapse = 613, ACCollapseAll = 614, ACPrintPreview = 615, ACPasteSpecial = 616, ACInsertMode = 617, ACDelete = 618, ACLock = 619, ACUnlock = 620, ACProtect = 621, ACUnprotect = 622, ACAttachComment = 623, ACDeleteComment = 624, ACViewComment = 625, ACSelectWord = 626, ACSelectSentence = 627, ACSelectParagraph = 628, ACSelectColumn = 629, ACSelectRow = 630, ACSelectTable = 631, ACSelectObject = 632, ACRedoRepeat = 633, ACSort = 634, ACSortAscending = 635, ACSortDescending = 636, ACFilter = 637, ACSetClock = 638, ACViewClock = 639, ACSelectTimeZone = 640, ACEditTimeZones = 641, ACSetAlarm = 642, ACClearAlarm = 643, ACSnoozeAlarm = 644, ACResetAlarm = 645, ACSynchronize = 646, ACSendReceive = 647, ACSendTo = 648, ACReply = 649, ACReplyAll = 650, ACForwardMsg = 651, ACSend = 652, ACAttachFile = 653, ACUpload = 654, ACDownloadSaveTargetAs = 655, ACSetBorders = 656, ACInsertRow = 657, ACInsertColumn = 658, ACInsertFile = 659, ACInsertPicture = 660, ACInsertObject = 661, ACInsertSymbol = 662, ACSaveAndClose = 663, ACRename = 664, ACMerge = 665, ACSplit = 666, ACDistributeHorizontally = 667, ACDistributeVertically = 668,
}
Expand description

Consumer usage page

See Universal Serial Bus (USB) HID Usage Tables Version 1.12: Section 15 Consumer Page (0x0C)

Variants§

§

Unassigned = 0

§

ConsumerControl = 1

§

NumericKeyPad = 2

§

ProgrammableButtons = 3

§

Microphone = 4

§

Headphone = 5

§

GraphicEqualizer = 6

§

Plus10 = 32

§

Plus100 = 33

§

AmPm = 34

§

Power = 48

§

Reset = 49

§

Sleep = 50

§

SleepAfter = 51

§

SleepMode = 52

§

Illumination = 53

§

FunctionButtons = 54

§

Menu = 64

§

MenuPick = 65

§

MenuUp = 66

§

MenuDown = 67

§

MenuLeft = 68

§

MenuRight = 69

§

MenuEscape = 70

§

MenuValueIncrease = 71

§

MenuValueDecrease = 72

§

DataOnScreen = 96

§

ClosedCaption = 97

§

ClosedCaptionSelect = 98

§

VcrTv = 99

§

BroadcastMode = 100

§

Snapshot = 101

§

Still = 102

§

Selection = 128

§

AssignSelection = 129

§

ModeStep = 130

§

RecallLast = 131

§

EnterChannel = 132

§

OrderMovie = 133

§

Channel = 134

§

MediaSelection = 135

§

MediaSelectComputer = 136

§

MediaSelectTV = 137

§

MediaSelectWWW = 138

§

MediaSelectDVD = 139

§

MediaSelectTelephone = 140

§

MediaSelectProgramGuide = 141

§

MediaSelectVideoPhone = 142

§

MediaSelectGames = 143

§

MediaSelectMessages = 144

§

MediaSelectCD = 145

§

MediaSelectVCR = 146

§

MediaSelectTuner = 147

§

Quit = 148

§

Help = 149

§

MediaSelectTape = 150

§

MediaSelectCable = 151

§

MediaSelectSatellite = 152

§

MediaSelectSecurity = 153

§

MediaSelectHome = 154

§

MediaSelectCall = 155

§

ChannelIncrement = 156

§

ChannelDecrement = 157

§

MediaSelectSAP = 158

§

VCRPlus = 160

§

Once = 161

§

Daily = 162

§

Weekly = 163

§

Monthly = 164

§

Play = 176

§

Pause = 177

§

Record = 178

§

FastForward = 179

§

Rewind = 180

§

ScanNextTrack = 181

§

ScanPreviousTrack = 182

§

Stop = 183

§

Eject = 184

§

RandomPlay = 185

§

SelectDisc = 186

§

EnterDisc = 187

§

Repeat = 188

§

Tracking = 189

§

TrackNormal = 190

§

SlowTracking = 191

§

FrameForward = 192

§

FrameBack = 193

§

Mark = 194

§

ClearMark = 195

§

RepeatFromMark = 196

§

ReturnToMark = 197

§

SearchMarkForward = 198

§

SearchMarkBackwards = 199

§

CounterReset = 200

§

ShowCounter = 201

§

TrackingIncrement = 202

§

TrackingDecrement = 203

§

StopEject = 204

§

PlayPause = 205

§

PlaySkip = 206

§

Volume = 224

§

Balance = 225

§

Mute = 226

§

Bass = 227

§

Treble = 228

§

BassBoost = 229

§

SurroundMode = 230

§

Loudness = 231

§

MPX = 232

§

VolumeIncrement = 233

§

VolumeDecrement = 234

§

SpeedSelect = 240

§

PlaybackSpeed = 241

§

StandardPlay = 242

§

LongPlay = 243

§

ExtendedPlay = 244

§

Slow = 245

§

FanEnable = 256

§

FanSpeed = 257

§

LightEnable = 258

§

LightIlluminationLevel = 259

§

ClimateControlEnable = 260

§

RoomTemperature = 261

§

SecurityEnable = 262

§

FireAlarm = 263

§

PoliceAlarm = 264

§

Proximity = 265

§

Motion = 266

§

DuressAlarm = 267

§

HoldupAlarm = 268

§

MedicalAlarm = 269

§

BalanceRight = 336

§

BalanceLeft = 337

§

BassIncrement = 338

§

BassDecrement = 339

§

TrebleIncrement = 340

§

TrebleDecrement = 341

§

SpeakerSystem = 352

§

ChannelLeft = 353

§

ChannelRight = 354

§

ChannelCenter = 355

§

ChannelFront = 356

§

ChannelCenterFront = 357

§

ChannelSide = 358

§

ChannelSurround = 359

§

ChannelLowFrequencyEnhancement = 360

§

ChannelTop = 361

§

ChannelUnknown = 362

§

SubChannel = 368

§

SubChannelIncrement = 369

§

SubChannelDecrement = 370

§

AlternateAudioIncrement = 371

§

AlternateAudioDecrement = 372

§

ApplicationLaunchButtons = 384

§

ALLaunchButtonConfigurationTool = 385

§

ALProgrammableButtonConfiguration = 386

§

ALConsumerControlConfiguration = 387

§

ALWordProcessor = 388

§

ALTextEditor = 389

§

ALSpreadsheet = 390

§

ALGraphicsEditor = 391

§

ALPresentationApp = 392

§

ALDatabaseApp = 393

§

ALEmailReader = 394

§

ALNewsreader = 395

§

ALVoicemail = 396

§

ALContactsAddressBook = 397

§

ALCalendarSchedule = 398

§

ALTaskProjectManager = 399

§

ALLogJournalTimecard = 400

§

ALCheckbookFinance = 401

§

ALCalculator = 402

§

ALAvCapturePlayback = 403

§

ALLocalMachineBrowser = 404

§

ALLanWanBrowser = 405

§

ALInternetBrowser = 406

§

ALRemoteNetworkingISPConnect = 407

§

ALNetworkConference = 408

§

ALNetworkChat = 409

§

ALTelephonyDialer = 410

§

ALLogon = 411

§

ALLogoff = 412

§

ALLogonLogoff = 413

§

ALTerminalLockScreensaver = 414

§

ALControlPanel = 415

§

ALCommandLineProcessorRun = 416

§

ALProcessTaskManager = 417

§

ALSelectTaskApplication = 418

§

ALNextTaskApplication = 419

§

ALPreviousTaskApplication = 420

§

ALPreemptiveHaltTaskApplication = 421

§

ALIntegratedHelpCenter = 422

§

ALDocuments = 423

§

ALThesaurus = 424

§

ALDictionary = 425

§

ALDesktop = 426

§

ALSpellCheck = 427

§

ALGrammarCheck = 428

§

ALWirelessStatus = 429

§

ALKeyboardLayout = 430

§

ALVirusProtection = 431

§

ALEncryption = 432

§

ALScreenSaver = 433

§

ALAlarms = 434

§

ALClock = 435

§

ALFileBrowser = 436

§

ALPowerStatus = 437

§

ALImageBrowser = 438

§

ALAudioBrowser = 439

§

ALMovieBrowser = 440

§

ALDigitalRightsManager = 441

§

ALDigitalWallet = 442

§

ALInstantMessaging = 444

§

ALOemFeaturesTipsTutorialBrowser = 445

§

ALOemHelp = 446

§

ALOnlineCommunity = 447

§

ALEntertainmentContentBrowser = 448

§

ALOnlineShoppingBrowser = 449

§

ALSmartCardInformationHelp = 450

§

ALMarketMonitorFinanceBrowser = 451

§

ALCustomizedCorporateNewsBrowser = 452

§

ALOnlineActivityBrowser = 453

§

ALResearchSearchBrowser = 454

§

ALAudioPlayer = 455

§

GenericGUIApplicationControls = 512

§

ACNew = 513

§

ACOpen = 514

§

ACClose = 515

§

ACExit = 516

§

ACMaximize = 517

§

ACMinimize = 518

§

ACSave = 519

§

ACPrint = 520

§

ACProperties = 521

§

ACUndo = 538

§

ACCopy = 539

§

ACCut = 540

§

ACPaste = 541

§

ACSelectAll = 542

§

ACFind = 543

§

ACFindAndReplace = 544

§

ACSearch = 545

§

ACGoTo = 546

§

ACHome = 547

§

ACBack = 548

§

ACForward = 549

§

ACStop = 550

§

ACRefresh = 551

§

ACBookmarks = 554

§

ACHistory = 555

§

ACSubscriptions = 556

§

ACZoomIn = 557

§

ACZoomOut = 558

§

ACZoom = 559

§

ACFullScreenView = 560

§

ACNormalView = 561

§

ACViewToggle = 562

§

ACScrollUp = 563

§

ACScrollDown = 564

§

ACScroll = 565

§

ACPanLeft = 566

§

ACPanRight = 567

§

ACPan = 568

§

ACNewWindow = 569

§

ACTileHorizontally = 570

§

ACTileVertically = 571

§

ACFormat = 572

§

ACEdit = 573

§

ACBold = 574

§

ACItalics = 575

§

ACUnderline = 576

§

ACStrikethrough = 577

§

ACSubscript = 578

§

ACSuperscript = 579

§

ACAllCaps = 580

§

ACRotate = 581

§

ACResize = 582

§

ACFlipHorizontal = 583

§

ACFlipVertical = 584

§

ACMirrorHorizontal = 585

§

ACMirrorVertical = 586

§

ACFontSelect = 587

§

ACFontColor = 588

§

ACFontSize = 589

§

ACJustifyLeft = 590

§

ACJustifyCenterH = 591

§

ACJustifyRight = 592

§

ACJustifyBlockH = 593

§

ACJustifyTop = 594

§

ACJustifyCenterV = 595

§

ACJustifyBottom = 596

§

ACJustifyBlockV = 597

§

ACIndentDecrease = 598

§

ACIndentIncrease = 599

§

ACNumberedList = 600

§

ACRestartNumbering = 601

§

ACBulletedList = 602

§

ACPromote = 603

§

ACDemote = 604

§

ACYes = 605

§

ACNo = 606

§

ACCancel = 607

§

ACCatalog = 608

§

ACBuyCheckout = 609

§

ACAddToCart = 610

§

ACExpand = 611

§

ACExpandAll = 612

§

ACCollapse = 613

§

ACCollapseAll = 614

§

ACPrintPreview = 615

§

ACPasteSpecial = 616

§

ACInsertMode = 617

§

ACDelete = 618

§

ACLock = 619

§

ACUnlock = 620

§

ACProtect = 621

§

ACUnprotect = 622

§

ACAttachComment = 623

§

ACDeleteComment = 624

§

ACViewComment = 625

§

ACSelectWord = 626

§

ACSelectSentence = 627

§

ACSelectParagraph = 628

§

ACSelectColumn = 629

§

ACSelectRow = 630

§

ACSelectTable = 631

§

ACSelectObject = 632

§

ACRedoRepeat = 633

§

ACSort = 634

§

ACSortAscending = 635

§

ACSortDescending = 636

§

ACFilter = 637

§

ACSetClock = 638

§

ACViewClock = 639

§

ACSelectTimeZone = 640

§

ACEditTimeZones = 641

§

ACSetAlarm = 642

§

ACClearAlarm = 643

§

ACSnoozeAlarm = 644

§

ACResetAlarm = 645

§

ACSynchronize = 646

§

ACSendReceive = 647

§

ACSendTo = 648

§

ACReply = 649

§

ACReplyAll = 650

§

ACForwardMsg = 651

§

ACSend = 652

§

ACAttachFile = 653

§

ACUpload = 654

§

ACDownloadSaveTargetAs = 655

§

ACSetBorders = 656

§

ACInsertRow = 657

§

ACInsertColumn = 658

§

ACInsertFile = 659

§

ACInsertPicture = 660

§

ACInsertObject = 661

§

ACInsertSymbol = 662

§

ACSaveAndClose = 663

§

ACRename = 664

§

ACMerge = 665

§

ACSplit = 666

§

ACDistributeHorizontally = 667

§

ACDistributeVertically = 668

Trait Implementations§

source§

impl Clone for Consumer

source§

fn clone(&self) -> Consumer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Consumer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Consumer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<Consumer> for u16

source§

fn from(enum_value: Consumer) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Consumer

source§

fn from(number: u16) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for Consumer

§

type Primitive = u16

source§

fn from_primitive(number: Self::Primitive) -> Self

source§

impl Hash for Consumer

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Consumer

source§

fn cmp(&self, other: &Consumer) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Consumer

source§

fn eq(&self, other: &Consumer) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Consumer

source§

fn partial_cmp(&self, other: &Consumer) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PrimitiveEnum for Consumer

§

type Primitive = u16

The primitve type into which we serialize and deserialize ourselves.
source§

fn from_primitive(val: u16) -> Option<Self>

Convert from a primitive, might fail.
source§

fn to_primitive(&self) -> u16

Convert to a primitive value.
source§

fn from_str(s: &str) -> Option<Self>

Convert from a string value representing the variant. Case sensitive.
source§

fn from_str_lower(s: &str) -> Option<Self>

Convert from a string value representing the variant. Lowercase.
source§

impl PrimitiveEnumStaticStr for Consumer

source§

fn to_display_str(&self) -> &'static str

Display value, same as the name of a particular variant.
source§

fn all_variants() -> &'static [Self]

A list all possible string variants.
source§

impl Copy for Consumer

source§

impl Eq for Consumer

source§

impl StructuralPartialEq for Consumer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

§

type Remainder = Choices

source§

fn subset( self ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

source§

fn lift_into(self) -> U

Performs the indexed conversion.
source§

impl<T> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<Source> Sculptor<HNil, HNil> for Source

§

type Remainder = Source

source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.