[−][src]Enum lib3h_protocol::protocol_client::Lib3hClientProtocol
Enum holding all message types in the 'hc-core -> P2P network module' protocol. There are 4 categories of messages:
- Command: An order from the local node to the p2p module. Local node expects a reponse. Starts with a verb.
- Handle-command: An order from the p2p module to the local node. The p2p module expects a response. Start withs 'Handle' followed by a verb.
- Result: A response to a Command. Starts with the name of the Command it responds to and ends with 'Result'.
- Notification: Notify that something happened. Not expecting any response. Ends with verb in past form, i.e. '-ed'. Fetch = Request between node and the network (other nodes) Get = Request within a node between p2p module and core
Variants
SuccessResult(GenericResultData)
Success response to a request (any Command with an request_id
field.)
Connect(ConnectData)
Connect to the specified multiaddr
JoinSpace(SpaceData)
Order the p2p module to be part of the network of the specified space.
LeaveSpace(SpaceData)
Order the p2p module to leave the network of the specified space.
SendDirectMessage(DirectMessageData)
Send a message directly to another agent on the network
HandleSendDirectMessageResult(DirectMessageData)
Our response to a direct message from another agent.
FetchEntry(FetchEntryData)
Request an Entry from the dht network
HandleFetchEntryResult(FetchEntryResultData)
Successful data response for a HandleFetchEntryData
request
PublishEntry(ProvidedEntryData)
Publish data to the dht.
QueryEntry(QueryEntryData)
Request some info / data from a Entry
HandleQueryEntryResult(QueryEntryResultData)
Response to a HandleQueryEntry
request
HandleGetAuthoringEntryListResult(EntryListData)
HandleGetGossipingEntryListResult(EntryListData)
Trait Implementations
impl From<ClientToLib3h> for Lib3hClientProtocol
[src]
fn from(c: ClientToLib3h) -> Self
[src]
impl From<Lib3hToClientResponse> for Lib3hClientProtocol
[src]
fn from(c: Lib3hToClientResponse) -> Self
[src]
impl Clone for Lib3hClientProtocol
[src]
fn clone(&self) -> Lib3hClientProtocol
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<Lib3hClientProtocol> for Lib3hClientProtocol
[src]
fn eq(&self, other: &Lib3hClientProtocol) -> bool
[src]
fn ne(&self, other: &Lib3hClientProtocol) -> bool
[src]
impl Debug for Lib3hClientProtocol
[src]
impl TryFrom<Lib3hClientProtocol> for ClientToLib3h
[src]
type Error = Lib3hProtocolError
The type returned in the event of a conversion error.
fn try_from(c: Lib3hClientProtocol) -> Result<Self, Self::Error>
[src]
impl TryFrom<Lib3hClientProtocol> for Lib3hToClientResponse
[src]
type Error = Lib3hProtocolError
The type returned in the event of a conversion error.
fn try_from(c: Lib3hClientProtocol) -> Result<Self, Self::Error>
[src]
impl StructuralPartialEq for Lib3hClientProtocol
[src]
impl Serialize for Lib3hClientProtocol
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Lib3hClientProtocol
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Lib3hClientProtocol
impl Sync for Lib3hClientProtocol
impl Unpin for Lib3hClientProtocol
impl UnwindSafe for Lib3hClientProtocol
impl RefUnwindSafe for Lib3hClientProtocol
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,