pub enum LockKey {
Interface(String),
Service(String),
}Expand description
One entry’s key: which interface body the entry numbers.
Its text form (Display, FromStr) is the token the file holds and the
spelling ridl lock’s flags take: LaneAssist for a declared interface,
service:veh.hvac.cabin for the inline shape of a service.
Variants§
Interface(String)
A declared interface, by its name.
Service(String)
A service’s inline shape, by the service’s dotted name (without the
service: prefix).
Trait Implementations§
impl Eq for LockKey
Source§impl FromStr for LockKey
impl FromStr for LockKey
Source§fn from_str(text: &str) -> Result<Self, Self::Err>
fn from_str(text: &str) -> Result<Self, Self::Err>
Accepts one identifier ([A-Za-z][A-Za-z0-9_]*, the lexer’s rule) for
an interface, or service: followed by identifiers joined by . for
an inline shape. No word is reserved: next is not a keyword of the
language, so an interface may be named next, and parse finds the
next N line by position rather than by its first word (plan decision
PD-19).
Source§type Err = InvalidLockKey
type Err = InvalidLockKey
The associated error which can be returned from parsing.
Source§impl Ord for LockKey
impl Ord for LockKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LockKey
impl PartialOrd for LockKey
impl StructuralPartialEq for LockKey
Auto Trait Implementations§
impl Freeze for LockKey
impl RefUnwindSafe for LockKey
impl Send for LockKey
impl Sync for LockKey
impl Unpin for LockKey
impl UnsafeUnpin for LockKey
impl UnwindSafe for LockKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> HashEqLike<&T> for T
impl<T> HashEqLike<&T> for T
Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more