pub enum Endpoint<'a> {
Legacy(&'a str),
Binary(&'a str),
}Expand description
The client’s endpoint choice is made before any socket bytes are sent.
Variants§
Legacy(&'a str)
Use the unchanged legacy protocol on this endpoint.
Binary(&'a str)
Use binary negotiation exclusively on this advertised endpoint.
Trait Implementations§
impl<'a> Eq for Endpoint<'a>
impl<'a> StructuralPartialEq for Endpoint<'a>
Auto Trait Implementations§
impl<'a> Freeze for Endpoint<'a>
impl<'a> RefUnwindSafe for Endpoint<'a>
impl<'a> Send for Endpoint<'a>
impl<'a> Sync for Endpoint<'a>
impl<'a> Unpin for Endpoint<'a>
impl<'a> UnsafeUnpin for Endpoint<'a>
impl<'a> UnwindSafe for Endpoint<'a>
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