pub struct SBAttachInfo {
    pub raw: SBAttachInfoRef,
}
Expand description

Configuration for attaching to a process.

See SBTarget::attach().

Fields

raw: SBAttachInfoRef

The underlying raw SBAttachInfoRef.

Implementations

Construct a new SBAttachInfo.

Construct a new SBAttachInfo for a given process ID (pid).

Attach to a process by name.

Future calls to SBTarget::attach(...) will be synchronous or asynchronous depending on the asynchronous argument.

  • path: A full or partial name for the process to attach to.
  • wait_for: If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches.
  • asynchronous: If false, then the SBTarget::attach call will be synchronous with no way to cancel the attach while it is in progress. If true, then the SBTarget::attach call will return immediately and clients are expected to wait for a process eStateStopped event if a suitable process is eventually found. If the client wants to cancel the event, SBProcess::stop can be called and an eStateExited process event will be delivered.

Get the listener that will be used to receive process events.

If no listener has been set via a call to SBAttachInfo::set_listener(), then None will be returned. If a listener has been set, then the listener object will be returned.

Set the listener that will be used to receive process events.

By default the SBDebugger, which has a listener, that the SBTarget belongs to will listen for the process events. Calling this function allows a different listener to be used to listen for process events.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.