[][src]Enum lib3h_protocol::protocol::ClientToLib3h

pub enum ClientToLib3h {
    Bootstrap(BootstrapData),
    JoinSpace(SpaceData),
    LeaveSpace(SpaceData),
    SendDirectMessage(DirectMessageData),
    FetchEntry(FetchEntryData),
    PublishEntry(ProvidedEntryData),
    QueryEntry(QueryEntryData),
}

Enum holding the message types describe the lib3h protocol. There are 4 categories of messages:

  • ClientToLib3h: A request or event sent from the user/client of lib3h (i.e. the Holochain node) to lib3h.
  • ClientToLib3hResponse: A response to a ClientToLib3h. The name always matches what it's a response to. The response may have no data associated with it, in which case its use is in the Err
  • Lib3hToClient: A request or event sent from lib3h its user/client.
  • Lib3hToClientResponse: A response from the client back to lib3h. Fetch = Request between node and the network (other nodes) Get = Request within a node between p2p module and core

Variants

Bootstrap(BootstrapData)

create an explicit connection to a remote peer

JoinSpace(SpaceData)

Order the engine to be part of the network of the specified space.

LeaveSpace(SpaceData)

Order the engine to leave the network of the specified space.

SendDirectMessage(DirectMessageData)

Send a message directly to another agent on the network

FetchEntry(FetchEntryData)

Request an Entry from the dht network

PublishEntry(ProvidedEntryData)

Publish data to the dht (event)

QueryEntry(QueryEntryData)

Request some info / data from a Entry

Trait Implementations

impl Clone for ClientToLib3h[src]

impl Debug for ClientToLib3h[src]

impl<'de> Deserialize<'de> for ClientToLib3h[src]

impl From<ClientToLib3h> for Lib3hClientProtocol[src]

impl PartialEq<ClientToLib3h> for ClientToLib3h[src]

impl Serialize for ClientToLib3h[src]

impl StructuralPartialEq for ClientToLib3h[src]

impl TryFrom<Lib3hClientProtocol> for ClientToLib3h[src]

type Error = Lib3hProtocolError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,