pub struct Endpoint(/* private fields */);Expand description
A validated destination.
Parsed once at start-up so a malformed endpoint stops the process rather than failing at the first publisher, and so the checks below happen where an operator can still act on them.
Implementations§
Source§impl Endpoint
impl Endpoint
pub fn parse(value: &str) -> Result<Self, EndpointError>
pub fn uri(&self) -> &Uri
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Whether credentials sent here are protected in transit by this node.
Cleartext may still be entirely appropriate, so this is a fact to report rather than a verdict: what protects the hop may be a mesh or a private network that this process cannot see.
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl !Freeze for Endpoint
impl Forget for Endpoint
impl Move for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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