#[non_exhaustive]#[repr(u8)]pub enum DistributedCode {
Ping = 0,
SearchRequest = 3,
BranchLevel = 4,
BranchRoot = 5,
ChildDepth = 7,
EmbeddedMessage = 93,
}Expand description
Message code on a distributed connection.
A u8 on the wire. The message struct of each code carries its description.
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.
Implementations§
Trait Implementations§
Source§impl Clone for DistributedCode
impl Clone for DistributedCode
impl Copy for DistributedCode
Source§impl Debug for DistributedCode
impl Debug for DistributedCode
impl Eq for DistributedCode
Source§impl Hash for DistributedCode
impl Hash for DistributedCode
Source§impl PartialEq for DistributedCode
impl PartialEq for DistributedCode
impl StructuralPartialEq for DistributedCode
Auto Trait Implementations§
impl Forget for DistributedCode
impl Freeze for DistributedCode
impl Move for DistributedCode
impl RefUnwindSafe for DistributedCode
impl Send for DistributedCode
impl Sync for DistributedCode
impl Unpin for DistributedCode
impl UnsafeUnpin for DistributedCode
impl UnwindSafe for DistributedCode
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