pub enum SignalKind {
Mention,
Thread,
Broadcast,
Steer,
}Expand description
What kind of communication a signal is. Steer is a fourth kind
rather than a flag beside the other three: it is the only one that
overtakes, and urgency has to belong to the signal for one id to
always take one lane.
Its serde form goes through SignalKind::as_str and
SignalKind::parse rather than through a derived renaming, so the
four wire words are spelled in one place.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SignalKind
impl Clone for SignalKind
impl Copy for SignalKind
Source§impl Debug for SignalKind
impl Debug for SignalKind
Source§impl<'de> Deserialize<'de> for SignalKind
impl<'de> Deserialize<'de> for SignalKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SignalKind
Source§impl From<SignalKind> for String
impl From<SignalKind> for String
Source§fn from(kind: SignalKind) -> String
fn from(kind: SignalKind) -> String
Converts to this type from the input type.
Source§impl PartialEq for SignalKind
impl PartialEq for SignalKind
Source§impl Serialize for SignalKind
impl Serialize for SignalKind
impl StructuralPartialEq for SignalKind
Auto Trait Implementations§
impl Freeze for SignalKind
impl RefUnwindSafe for SignalKind
impl Send for SignalKind
impl Sync for SignalKind
impl Unpin for SignalKind
impl UnsafeUnpin for SignalKind
impl UnwindSafe for SignalKind
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