pub struct Endpoint { /* private fields */ }Expand description
Validated plaintext-loopback, authenticated-root TLS, or WSS endpoint.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Resolves MOBIUS_GATEWAY_ENDPOINT, defaulting to local plaintext.
Sourcepub const fn is_plaintext(&self) -> bool
pub const fn is_plaintext(&self) -> bool
Returns whether this endpoint uses loopback-only plaintext transport.
Sourcepub const fn is_websocket(&self) -> bool
pub const fn is_websocket(&self) -> bool
Returns whether this endpoint uses secure WebSocket transport.
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze 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