pub struct SockConfig<'a, T>where
    T: IntoInnerSocket,
{ pub ctx: Arc<Context>, pub bind: Vec<&'a str>, pub connect: Vec<&'a str>, pub identity: Option<&'a [u8]>, /* private fields */ }
Expand description

The final builder step for some socket types

This contains all the information required to contstruct a valid socket, except in the case of SUB, which needs an additional filter parameter.

Fields

ctx: Arc<Context>bind: Vec<&'a str>connect: Vec<&'a str>identity: Option<&'a [u8]>

Implementations

Bind the SockConfig to an address, returning a SockConfig

This allows for a single socket to be bound to multiple addresses.

Connect the SockConfig to an address, returning a SockConfig

This allows for a single socket to be connected to multiple addresses.

Bind or Connect the socket to an address

This method indicates that the resulting socket will be a PAIR socket.

Continue the building process into a SubConfig, for the SUB socket type which requires setting a subscription filter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.