#[non_exhaustive]pub enum ProximityValue {
Arrive,
Depart,
Connect,
Disconnect,
}Expand description
A proximity value (RFC 9074 §8.1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ProximityValue
impl Clone for ProximityValue
Source§fn clone(&self) -> ProximityValue
fn clone(&self) -> ProximityValue
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 moreimpl Copy for ProximityValue
Source§impl Debug for ProximityValue
impl Debug for ProximityValue
Source§impl Display for ProximityValue
impl Display for ProximityValue
impl Eq for ProximityValue
Source§impl FromStr for ProximityValue
impl FromStr for ProximityValue
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ProximityValue, <ProximityValue as FromStr>::Err>
fn from_str(s: &str) -> Result<ProximityValue, <ProximityValue as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ProximityValue
impl Hash for ProximityValue
Source§impl PartialEq for ProximityValue
impl PartialEq for ProximityValue
impl StructuralPartialEq for ProximityValue
Source§impl TryFrom<&str> for ProximityValue
impl TryFrom<&str> for ProximityValue
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<ProximityValue, <ProximityValue as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<ProximityValue, <ProximityValue as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl WriteIcal for ProximityValue
impl WriteIcal for ProximityValue
Source§fn write_ical(&self, w: &mut dyn Write) -> Result
fn write_ical(&self, w: &mut dyn Write) -> Result
Writes this value to the given writer in iCalendar wire format.
Source§fn to_ical_string(&self) -> String
fn to_ical_string(&self) -> String
Convenience method that serializes to a
String.Auto Trait Implementations§
impl Freeze for ProximityValue
impl RefUnwindSafe for ProximityValue
impl Send for ProximityValue
impl Sync for ProximityValue
impl Unpin for ProximityValue
impl UnsafeUnpin for ProximityValue
impl UnwindSafe for ProximityValue
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