pub enum SyncPeerScheme {
Http,
Https,
}Expand description
HTTP scheme supported by the built-in synchronization transport.
Variants§
Http
Plain HTTP, intended for trusted local or externally secured networks.
Https
HTTPS with server certificate validation.
Implementations§
Trait Implementations§
Source§impl Clone for SyncPeerScheme
impl Clone for SyncPeerScheme
Source§fn clone(&self) -> SyncPeerScheme
fn clone(&self) -> SyncPeerScheme
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 moreimpl Copy for SyncPeerScheme
Source§impl Debug for SyncPeerScheme
impl Debug for SyncPeerScheme
impl Eq for SyncPeerScheme
Source§impl Ord for SyncPeerScheme
impl Ord for SyncPeerScheme
Source§fn cmp(&self, other: &SyncPeerScheme) -> Ordering
fn cmp(&self, other: &SyncPeerScheme) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SyncPeerScheme
impl PartialEq for SyncPeerScheme
Source§impl PartialOrd for SyncPeerScheme
impl PartialOrd for SyncPeerScheme
impl StructuralPartialEq for SyncPeerScheme
Auto Trait Implementations§
impl Freeze for SyncPeerScheme
impl RefUnwindSafe for SyncPeerScheme
impl Send for SyncPeerScheme
impl Sync for SyncPeerScheme
impl Unpin for SyncPeerScheme
impl UnsafeUnpin for SyncPeerScheme
impl UnwindSafe for SyncPeerScheme
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