pub struct SetDiscoverTargetsBuilder { /* private fields */ }Expand description
Builder for SetDiscoverTargets.
Implementations§
Source§impl SetDiscoverTargetsBuilder
impl SetDiscoverTargetsBuilder
Sourcepub fn discover<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn discover<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to discover available targets.
Sourcepub fn filter<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
pub fn filter<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
Only targets matching filter will be attached. If discover is false,
filter must be omitted or empty.
Sourcepub fn build(
&self,
) -> Result<SetDiscoverTargets, SetDiscoverTargetsBuilderError>
pub fn build( &self, ) -> Result<SetDiscoverTargets, SetDiscoverTargetsBuilderError>
Trait Implementations§
Source§impl Clone for SetDiscoverTargetsBuilder
impl Clone for SetDiscoverTargetsBuilder
Source§fn clone(&self) -> SetDiscoverTargetsBuilder
fn clone(&self) -> SetDiscoverTargetsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SetDiscoverTargetsBuilder
impl RefUnwindSafe for SetDiscoverTargetsBuilder
impl Send for SetDiscoverTargetsBuilder
impl Sync for SetDiscoverTargetsBuilder
impl Unpin for SetDiscoverTargetsBuilder
impl UnsafeUnpin for SetDiscoverTargetsBuilder
impl UnwindSafe for SetDiscoverTargetsBuilder
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