[][src]Struct holochain_net_ipc::ipc_client::IpcClient

pub struct IpcClient<S: IpcSocket> { /* fields omitted */ }

IPC communication client structure. Allows connection to an external process that manages p2p communications.

This struct takes an abstract socket type mainly to facilitate unit testing. You will mainly instantiate the exported ZmqIpcClient type definition.

Methods

impl<S: IpcSocket> IpcClient<S>
[src]

Perform any underlying socket library cleanup. Call this before your application exits.

Get a new IpcClient instance.

Close this specific IpcClient connection.

Connect this IpcClient to a p2p ipc server.

Send a heartbeat message to the ipc server.

invoke an RPC-style call on the ipc server

respond to a remote call

Allow IPC client to do any needed processing. This should be called regularly to make sure any maintenance tasks are executed properly, and to avoid incoming data backing up in memory.

If there are no incoming messages waiting in the queue, millis indicates how long we should block waiting for one. It is perfectly valid to pass in 0 for millis.

Auto Trait Implementations

impl<S> Send for IpcClient<S> where
    S: Send

impl<S> !Sync for IpcClient<S>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.