pub struct SubConfig<'a> {
    pub ctx: Arc<Context>,
    pub bind: Vec<&'a str>,
    pub connect: Vec<&'a str>,
    pub filter: &'a [u8],
    pub identity: Option<&'a [u8]>,
}
Expand description

The final builder step for the Sub socket type.

This contains all the information required to contstruct a valid SUB socket

Fields

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

Implementations

Finalize the SubConfig into a Sub if the creation is successful, or into an Error if something went wrong.

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.