pub struct BvlcResultCode(/* private fields */);Expand description
The result code a BVLC-Result carries (Annex J.2.1.1): success, or a NAK naming the request that failed.
Implementations§
Source§impl BvlcResultCode
impl BvlcResultCode
Sourcepub const SUCCESSFUL_COMPLETION: Self
pub const SUCCESSFUL_COMPLETION: Self
The request succeeded.
Wire value 0x0000.
Sourcepub const WRITE_BROADCAST_DISTRIBUTION_TABLE_NAK: Self
pub const WRITE_BROADCAST_DISTRIBUTION_TABLE_NAK: Self
Write-Broadcast-Distribution-Table failed or is not supported.
Wire value 0x0010.
Sourcepub const READ_BROADCAST_DISTRIBUTION_TABLE_NAK: Self
pub const READ_BROADCAST_DISTRIBUTION_TABLE_NAK: Self
Read-Broadcast-Distribution-Table failed or is not supported.
Wire value 0x0020.
Sourcepub const REGISTER_FOREIGN_DEVICE_NAK: Self
pub const REGISTER_FOREIGN_DEVICE_NAK: Self
Register-Foreign-Device failed or is not supported.
Wire value 0x0030.
Sourcepub const READ_FOREIGN_DEVICE_TABLE_NAK: Self
pub const READ_FOREIGN_DEVICE_TABLE_NAK: Self
Read-Foreign-Device-Table failed or is not supported.
Wire value 0x0040.
Sourcepub const DELETE_FOREIGN_DEVICE_TABLE_ENTRY_NAK: Self
pub const DELETE_FOREIGN_DEVICE_TABLE_ENTRY_NAK: Self
Delete-Foreign-Device-Table-Entry failed or is not supported.
Wire value 0x0050.
Sourcepub const DISTRIBUTE_BROADCAST_TO_NETWORK_NAK: Self
pub const DISTRIBUTE_BROADCAST_TO_NETWORK_NAK: Self
Distribute-Broadcast-To-Network failed or is not supported.
Wire value 0x0060.
Sourcepub const ALL_NAMED: &[(&str, Self)]
pub const ALL_NAMED: &[(&str, Self)]
Every named constant, with its name, in the order declared.
Sourcepub const fn name(self) -> Option<&'static str>
pub const fn name(self) -> Option<&'static str>
The constant’s name, or None for a value the standard
doesn’t define.
Sourcepub const fn is_defined(self) -> bool
pub const fn is_defined(self) -> bool
Whether the standard defines this value.
Trait Implementations§
Source§impl Clone for BvlcResultCode
impl Clone for BvlcResultCode
impl Copy for BvlcResultCode
Source§impl Debug for BvlcResultCode
Name::CONSTANT for a named value, Name(raw) otherwise.
impl Debug for BvlcResultCode
Name::CONSTANT for a named value, Name(raw) otherwise.
Source§impl Display for BvlcResultCode
The constant’s name, or the raw value in decimal.
impl Display for BvlcResultCode
The constant’s name, or the raw value in decimal.