Enum tdn::prelude::ReceiveMessage
source · pub enum ReceiveMessage {
Own(RecvType),
Group(RecvType),
Layer(u64, u64, RecvType),
Rpc(u64, Value, bool),
NetworkLost,
}
Expand description
channel message receive from TDN for std version.
Variants§
Own(RecvType)
P2P network with same PeerId.
Group(RecvType)
Group: GroupMessage.
Layer(u64, u64, RecvType)
Layer: LayerMessage. Take care of Leave
.
Rpc(u64, Value, bool)
RPC: connection uid, request params, is websocket.
NetworkLost
when network lost all DHT network and direct stables. will tell outside.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReceiveMessage
impl !RefUnwindSafe for ReceiveMessage
impl Send for ReceiveMessage
impl Sync for ReceiveMessage
impl Unpin for ReceiveMessage
impl !UnwindSafe for ReceiveMessage
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