Struct rpki::uri::Https [−][src]
pub struct Https { /* fields omitted */ }
Expand description
A simple HTTPS URI.
This is only a slim wrapper around a Bytes
value ensuring that the
scheme is "https"
.
Implementations
impl Https
[src]
impl Https
[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 unshare(&mut self)
[src]
pub fn unshare(&mut self)
[src]Moves the URI to its own memory.
Values use shared memory in order to allow cheap copying which may result in large allocations being kept around longer than necessary. This method moves the URI to a new memory location allowing the previous location to potentially be freed.
pub fn scheme(&self) -> Scheme
[src]
pub fn authority(&self) -> &str
[src]
pub fn as_str(&self) -> &str
[src]
Trait Implementations
impl Eq for Https
[src]
Auto Trait Implementations
impl RefUnwindSafe for Https
impl Send for Https
impl Sync for Https
impl Unpin for Https
impl UnwindSafe for Https
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more