pub enum RoutingMode {
ServerOnly,
P2POnly,
PreferP2P,
}Expand description
Routing mode for message delivery
Variants§
ServerOnly
Only use server relay (no P2P)
P2POnly
Only use P2P (fail if unavailable)
PreferP2P
Prefer P2P, fall back to server
Trait Implementations§
Source§impl Clone for RoutingMode
impl Clone for RoutingMode
Source§fn clone(&self) -> RoutingMode
fn clone(&self) -> RoutingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingMode
impl Debug for RoutingMode
Source§impl Default for RoutingMode
impl Default for RoutingMode
Source§fn default() -> RoutingMode
fn default() -> RoutingMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoutingMode
impl PartialEq for RoutingMode
impl Copy for RoutingMode
impl Eq for RoutingMode
impl StructuralPartialEq for RoutingMode
Auto Trait Implementations§
impl Freeze for RoutingMode
impl RefUnwindSafe for RoutingMode
impl Send for RoutingMode
impl Sync for RoutingMode
impl Unpin for RoutingMode
impl UnwindSafe for RoutingMode
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