pub struct FilterDefinition { /* private fields */ }
Expand description
A single filter definition.
Implementations§
Source§impl FilterDefinition
impl FilterDefinition
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Returns a new filter instance with the given name (for diagnostics).
Sourcepub fn by_interface(self, interface_id: Guid) -> Self
pub fn by_interface(self, interface_id: Guid) -> Self
Adds the specified interface ID to the filter, to include offers for that interface.
Sourcepub fn by_instance(self, interface_id: Guid, instance_id: Guid) -> Self
pub fn by_instance(self, interface_id: Guid, instance_id: Guid) -> Self
Adds the specified interface ID and instance ID to the filter, to include offers for a specific offer instance.
Sourcepub fn take(self) -> ConnectResult
pub fn take(self) -> ConnectResult
Takes a filtered connection result.
This should be called only after the filter has been built and offers
have been processed, via ClientFilterBuilder::build
. Panics
otherwise.
Auto Trait Implementations§
impl Freeze for FilterDefinition
impl !RefUnwindSafe for FilterDefinition
impl Send for FilterDefinition
impl Sync for FilterDefinition
impl Unpin for FilterDefinition
impl !UnwindSafe for FilterDefinition
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