binaryninja::workflow

Struct WorkflowBuilder

source
pub struct WorkflowBuilder { /* private fields */ }

Implementations§

source§

impl WorkflowBuilder

source

pub fn activity_before( self, activity: &Activity, sibling: &str, ) -> Result<Self, ()>

Register an Activity with this Workflow and insert it before the designated position.

  • activity - the Activity to register
  • sibling - the activity to insert the new activity before
source

pub fn activity_after( self, activity: &Activity, sibling: &str, ) -> Result<Self, ()>

Register an Activity with this Workflow and insert it in the designated position.

  • activity - the Activity to register
  • sibling - the activity to insert the new activity after
source

pub fn register_activity(self, activity: &Activity) -> Result<Self, ()>

Register an Activity with this Workflow.

source

pub fn register_activity_with_subactivities<I>( self, activity: &Activity, subactivities: I, ) -> Result<Self, ()>
where I: IntoIterator, I::Item: IntoCStr,

Register an Activity with this Workflow.

  • activity - the Activity to register
  • subactivities - the list of Activities to assign
source

pub fn register(self) -> Result<Ref<Workflow>, ()>

Register this Workflow, making it immutable and available for use.

source

pub fn register_with_config(self, config: &str) -> Result<Ref<Workflow>, ()>

Register this Workflow, making it immutable and available for use.

  • configuration - a JSON representation of the workflow configuration
source

pub fn subactivities<I>(self, activity: &str, activities: I) -> Result<Self, ()>
where I: IntoIterator, I::Item: IntoCStr,

Assign the list of activities as the new set of children for the specified activity.

  • activity - the Activity node to assign children
  • activities - the list of Activities to assign
source

pub fn clear(self) -> Result<Self, ()>

Remove all Activity nodes from this Workflow.

source

pub fn insert<I>(self, activity: &str, activities: I) -> Result<Self, ()>
where I: IntoIterator, I::Item: IntoCStr,

Insert the list of activities before the specified activity and at the same level.

  • activity - the Activity node for which to insert activities before
  • activities - the list of Activities to insert
source

pub fn insert_after<I>(self, activity: &str, activities: I) -> Result<Self, ()>
where I: IntoIterator, I::Item: IntoCStr,

Insert the list of activities after the specified activity and at the same level.

  • activity - the Activity node for which to insert activities after
  • activities - the list of Activities to insert
source

pub fn remove(self, activity: &str) -> Result<Self, ()>

Remove the specified activity

source

pub fn replace(self, activity: &str, new_activity: &str) -> Result<Self, ()>

Replace the specified activity.

  • activity - the Activity to replace
  • new_activity - the replacement Activity

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.