#[non_exhaustive]pub enum RemoteStyle {
Counterpart,
Predecessor,
Successor,
}Expand description
Describes how messages are transformed when sent to a remote peer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Counterpart
Pass each message through exactly as it is.
Predecessor
Only messages not wrapped in successor.
Successor
Wrap messages in a SuccessorMessage envelope.
Trait Implementations§
Source§impl Clone for RemoteStyle
impl Clone for RemoteStyle
Source§fn clone(&self) -> RemoteStyle
fn clone(&self) -> RemoteStyle
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 RemoteStyle
impl Debug for RemoteStyle
Source§impl PartialEq for RemoteStyle
impl PartialEq for RemoteStyle
impl Eq for RemoteStyle
impl StructuralPartialEq for RemoteStyle
Auto Trait Implementations§
impl Freeze for RemoteStyle
impl RefUnwindSafe for RemoteStyle
impl Send for RemoteStyle
impl Sync for RemoteStyle
impl Unpin for RemoteStyle
impl UnsafeUnpin for RemoteStyle
impl UnwindSafe for RemoteStyle
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