pub struct ManifestLinkLayer { /* private fields */ }Expand description
Implementations§
Source§impl ManifestLinkLayer
impl ManifestLinkLayer
Sourcepub fn new(uri: &str) -> Result<Self, Error>
pub fn new(uri: &str) -> Result<Self, Error>
Build a layer advertising uri.
The header value is rendered once, here, rather than per response. The target is percent-encoded, so any input produces a safe header.
Sourcepub fn new_strict(uri: &str) -> Result<Self, Error>
pub fn new_strict(uri: &str) -> Result<Self, Error>
As new, but fails if uri is not already a valid URI
reference instead of repairing it.
Prefer this when the target comes from configuration: a stray space in a
deployment variable becomes a startup error rather than a silent %20
and a 404 at validation time.
Trait Implementations§
Source§impl Clone for ManifestLinkLayer
impl Clone for ManifestLinkLayer
Source§fn clone(&self) -> ManifestLinkLayer
fn clone(&self) -> ManifestLinkLayer
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 moreSource§impl Debug for ManifestLinkLayer
impl Debug for ManifestLinkLayer
Auto Trait Implementations§
impl !Freeze for ManifestLinkLayer
impl RefUnwindSafe for ManifestLinkLayer
impl Send for ManifestLinkLayer
impl Sync for ManifestLinkLayer
impl Unpin for ManifestLinkLayer
impl UnsafeUnpin for ManifestLinkLayer
impl UnwindSafe for ManifestLinkLayer
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