pub struct SetDiscoverTargetsParams {
pub discover: bool,
pub filter: Option<TargetFilter>,
}Expand description
Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed events.
setDiscoverTargets
Fields§
§discover: boolWhether to discover available targets.
filter: Option<TargetFilter>Only targets matching filter will be attached. If discover is false,
filter must be omitted or empty.
Implementations§
Trait Implementations§
Source§impl Clone for SetDiscoverTargetsParams
impl Clone for SetDiscoverTargetsParams
Source§fn clone(&self) -> SetDiscoverTargetsParams
fn clone(&self) -> SetDiscoverTargetsParams
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 moreSource§impl Debug for SetDiscoverTargetsParams
impl Debug for SetDiscoverTargetsParams
Source§impl<'de> Deserialize<'de> for SetDiscoverTargetsParams
impl<'de> Deserialize<'de> for SetDiscoverTargetsParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetDiscoverTargetsParams
impl PartialEq for SetDiscoverTargetsParams
Source§impl Serialize for SetDiscoverTargetsParams
impl Serialize for SetDiscoverTargetsParams
impl StructuralPartialEq for SetDiscoverTargetsParams
Auto Trait Implementations§
impl Freeze for SetDiscoverTargetsParams
impl RefUnwindSafe for SetDiscoverTargetsParams
impl Send for SetDiscoverTargetsParams
impl Sync for SetDiscoverTargetsParams
impl Unpin for SetDiscoverTargetsParams
impl UnsafeUnpin for SetDiscoverTargetsParams
impl UnwindSafe for SetDiscoverTargetsParams
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