pub struct SubConfig<'a> {
pub ctx: Arc<Context>,
pub bind: Vec<&'a str>,
pub connect: Vec<&'a str>,
pub customize: Box<dyn Fn(&Socket)>,
pub filter: Vec<&'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>§customize: Box<dyn Fn(&Socket)>§filter: Vec<&'a [u8]>§identity: Option<&'a [u8]>Implementations§
Source§impl<'a> SubConfig<'a>
impl<'a> SubConfig<'a>
Sourcepub fn filter(self, pattern: &'a [u8]) -> SubConfig<'a>
pub fn filter(self, pattern: &'a [u8]) -> SubConfig<'a>
Continue the building process into a SubConfig, for the SUB socket type which requires setting a subscription filter.
Auto Trait Implementations§
impl<'a> Freeze for SubConfig<'a>
impl<'a> !RefUnwindSafe for SubConfig<'a>
impl<'a> !Send for SubConfig<'a>
impl<'a> !Sync for SubConfig<'a>
impl<'a> Unpin for SubConfig<'a>
impl<'a> !UnwindSafe for SubConfig<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more