[][src]Struct sawtooth_sdk::consensus::zmq_service::ZmqService

pub struct ZmqService { /* fields omitted */ }

Methods

impl ZmqService[src]

pub fn new(sender: ZmqMessageSender, timeout: Duration) -> Self[src]

pub fn rpc<I: Message, O: Message>(
    &mut self,
    request: &I,
    request_type: Message_MessageType,
    response_type: Message_MessageType
) -> Result<O, Error>
[src]

Serialize and send a request, wait for the default timeout, and receive and parse an expected response.

Trait Implementations

impl Service for ZmqService[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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