[][src]Struct rpki::uri::Http

pub struct Http { /* fields omitted */ }

A simple HTTP(s) URI

This supports only what we need for the references in RPKI objects and publication / provisioning messages. In particular, this does not support the query and fragment components of URIs.

Methods

impl Http[src]

pub fn from_string(s: String) -> Result<Self, Error>[src]

pub fn from_slice(slice: &[u8]) -> Result<Self, Error>[src]

pub fn from_bytes(bytes: Bytes) -> Result<Self, Error>[src]

pub fn secure(&self) -> bool[src]

pub fn scheme(&self) -> Scheme[src]

pub fn host(&self) -> &str[src]

pub fn path(&self) -> &str[src]

pub fn to_string(&self) -> String[src]

pub fn encode_general_name<'a>(&'a self) -> impl Values + 'a[src]

Trait Implementations

impl PartialEq<Http> for Http[src]

impl Clone for Http[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Http[src]

impl Debug for Http[src]

impl FromStr for Http[src]

type Err = Error

The associated error which can be returned from parsing.

impl<'a> PrimitiveContent for &'a Http[src]

fn to_encoded_bytes(&self, mode: Mode) -> Bytes[src]

Encodes the value to bytes (useful when you need to sign a structure)

fn encode(self) -> Primitive<Self>[src]

Returns a value encoder for this content using the natural tag. Read more

fn encode_as(self, tag: Tag) -> Primitive<Self>[src]

Returns a value encoder for this content using the given tag. Read more

fn encode_ref(&self) -> Primitive<&Self>[src]

Returns a value encoder for a reference using the natural tag.

fn encode_ref_as(&self, tag: Tag) -> Primitive<&Self>[src]

Returns a value encoder for a reference using the given tag.

Auto Trait Implementations

impl Send for Http

impl Sync for Http

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.