[−][src]Struct rpki::uri::Http
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(&self) -> 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.
fn from_str(s: &str) -> Result<Self, Error>
[src]
impl<'a> PrimitiveContent for &'a Http
[src]
const TAG: Tag
[src]
fn encoded_len(&self, _: Mode) -> usize
[src]
fn write_encoded<W: Write>(
&self,
_mode: Mode,
target: &mut W
) -> Result<(), Error>
[src]
&self,
_mode: Mode,
target: &mut W
) -> Result<(), Error>
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,