[−][src]Enum uriparse::scheme::SchemeStatus
The registration status of a scheme. See RFC 7595 for more information.
Variants
A scheme registered due to historical use. Generally, it is no longer in common use or is not recommended.
A scheme that has been expertly reviewed.
A scheme that was registered on a first come first served basis.
A scheme that is not currently registerd under iana.org.
Implementations
impl SchemeStatus
[src]
pub fn is_historical(self) -> bool
[src]
Returns whether the scheme status is historical.
Examples
use uriparse::Scheme; assert_eq!(Scheme::Fax.status().is_historical(), true); assert_eq!(Scheme::HTTP.status().is_historical(), false);
pub fn is_permanent(self) -> bool
[src]
Returns whether the scheme status is historical.
Examples
use uriparse::Scheme; assert_eq!(Scheme::HTTP.status().is_permanent(), true); assert_eq!(Scheme::IRC.status().is_permanent(), false);
pub fn is_provisional(self) -> bool
[src]
Returns whether the scheme status is historical.
Examples
use uriparse::Scheme; assert_eq!(Scheme::Git.status().is_provisional(), true); assert_eq!(Scheme::RTSP.status().is_provisional(), false);
pub fn is_unregistered(self) -> bool
[src]
Returns whether the scheme status is historical.
Examples
use std::convert::TryFrom; use uriparse::Scheme; let scheme = Scheme::try_from("test-scheme").unwrap(); assert_eq!(scheme.status().is_unregistered(), true); assert_eq!(Scheme::HTTPS.status().is_unregistered(), false);
Trait Implementations
impl Clone for SchemeStatus
[src]
fn clone(&self) -> SchemeStatus
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SchemeStatus
[src]
impl Debug for SchemeStatus
[src]
impl Eq for SchemeStatus
[src]
impl Hash for SchemeStatus
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SchemeStatus> for SchemeStatus
[src]
fn eq(&self, other: &SchemeStatus) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SchemeStatus
[src]
impl StructuralPartialEq for SchemeStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for SchemeStatus
impl Send for SchemeStatus
impl Sync for SchemeStatus
impl Unpin for SchemeStatus
impl UnwindSafe for SchemeStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,