pub struct LinkLocalHttpEndpoint { /* private fields */ }Expand description
Provider-policy-bound IPv4 link-local HTTP endpoint for metadata services.
This type cannot carry credentials and is accepted only by explicit raw client constructors. It rejects DNS names, non-link-local addresses, non-default ports, and destinations outside the supplied fixed policy.
Implementations§
Source§impl LinkLocalHttpEndpoint
impl LinkLocalHttpEndpoint
Sourcepub fn new_with_policy(
value: &str,
policy: EndpointPolicy<'_>,
) -> Result<Self, EndpointError>
pub fn new_with_policy( value: &str, policy: EndpointPolicy<'_>, ) -> Result<Self, EndpointError>
Validates one direct HTTP metadata destination against provider policy.
Sourcepub fn identity(&self) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
pub fn identity(&self) -> Result<EndpointIdentity<'_>, EndpointIdentityError>
Returns the normalized endpoint identity.
Trait Implementations§
Source§impl Clone for LinkLocalHttpEndpoint
impl Clone for LinkLocalHttpEndpoint
Source§fn clone(&self) -> LinkLocalHttpEndpoint
fn clone(&self) -> LinkLocalHttpEndpoint
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 moreAuto Trait Implementations§
impl Freeze for LinkLocalHttpEndpoint
impl RefUnwindSafe for LinkLocalHttpEndpoint
impl Send for LinkLocalHttpEndpoint
impl Sync for LinkLocalHttpEndpoint
impl Unpin for LinkLocalHttpEndpoint
impl UnsafeUnpin for LinkLocalHttpEndpoint
impl UnwindSafe for LinkLocalHttpEndpoint
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