[][src]Struct libzmq::ServerBuilder

pub struct ServerBuilder { /* fields omitted */ }

A builder for a Server.

Allows for ergonomic one line socket configuration.

Methods

impl ServerBuilder[src]

pub fn new() -> Self[src]

pub fn build(&self) -> Result<Server, Error<usize>>[src]

pub fn with_ctx<C>(&self, ctx: C) -> Result<Server, Error<usize>> where
    C: Into<Ctx>, 
[src]

Trait Implementations

impl BuildRecv for ServerBuilder[src]

fn recv_high_water_mark(&mut self, hwm: i32) -> &mut Self[src]

fn recv_timeout(&mut self, timeout: Duration) -> &mut Self[src]

impl BuildSend for ServerBuilder[src]

fn send_high_water_mark(&mut self, hwm: i32) -> &mut Self[src]

fn send_timeout(&mut self, timeout: Duration) -> &mut Self[src]

impl BuildSocket for ServerBuilder[src]

fn connect<I, E>(&mut self, endpoints: I) -> &mut Self where
    I: IntoIterator<Item = E>,
    E: Into<Endpoint>, 
[src]

fn bind<I, E>(&mut self, endpoints: I) -> &mut Self where
    I: IntoIterator<Item = E>,
    E: Into<Endpoint>, 
[src]

fn backlog(&mut self, len: i32) -> &mut Self[src]

fn heartbeat_interval(&mut self, duration: Duration) -> &mut Self[src]

fn heartbeat_timeout(&mut self, duration: Duration) -> &mut Self[src]

fn heartbeat_ttl(&mut self, duration: Duration) -> &mut Self[src]

fn linger(&mut self, maybe: Option<Duration>) -> &mut Self[src]

fn mechanism<M>(&mut self, mechanism: M) -> &mut Self where
    M: Into<Mechanism>, 
[src]

impl PartialEq<ServerBuilder> for ServerBuilder[src]

impl Clone for ServerBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ServerBuilder[src]

impl Eq for ServerBuilder[src]

impl Debug for ServerBuilder[src]

impl Hash for ServerBuilder[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<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]