pub enum EndpointType {
Server {},
Client {},
}
Expand description
An endpoint may be either a Server or a Client
Variants
Server
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Client
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations
sourceimpl Clone for EndpointType
impl Clone for EndpointType
sourcefn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EndpointType
impl Debug for EndpointType
Auto Trait Implementations
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnwindSafe for EndpointType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more