pub struct Ref<T: RefCountable> { /* private fields */ }Implementations§
Source§impl Ref<LowLevelILFunction<Mutable, NonSSA>>
impl Ref<LowLevelILFunction<Mutable, NonSSA>>
Sourcepub fn finalized(self) -> Ref<LowLevelILFunction<Finalized, NonSSA>>
pub fn finalized(self) -> Ref<LowLevelILFunction<Finalized, NonSSA>>
Finalize the mutated LowLevelILFunction, returning a LowLevelILRegularFunction.
This function will not correct the SSA related dataflow, to do that you must call
the function LowLevelILMutableFunction::generate_ssa_form.
§Example
use binaryninja::low_level_il::LowLevelILMutableFunction;
use binaryninja::rc::Ref;
// ... modify the IL
let finalized_llil = mutable_llil.finalized();
finalized_llil.generate_ssa_form();Source§impl Ref<CoreWebsocketClient>
impl Ref<CoreWebsocketClient>
Sourcepub fn connect<'a, I, C>(
self,
host: &str,
headers: I,
callbacks: &'a C,
) -> Option<ActiveConnection<'a, C>>
pub fn connect<'a, I, C>( self, host: &str, headers: I, callbacks: &'a C, ) -> Option<ActiveConnection<'a, C>>
Initializes the web socket connection, returning the ActiveConnection, once dropped the
connection will be disconnected.
Connect to a given url, asynchronously. The connection will be run in a separate thread managed by the websocket provider.
Callbacks will be called on the thread of the connection, so be sure to ExecuteOnMainThread any long-running or gui operations in the callbacks.
If the connection succeeds, WebsocketClientCallback::connected will be called. On normal termination, WebsocketClientCallback::disconnected will be called.
If the connection succeeds but later fails, WebsocketClientCallback::error will be called
and shortly thereafter WebsocketClientCallback::disconnected will be called.
If WebsocketClientCallback::connected or WebsocketClientCallback::read return false, the
connection will be aborted.
host- Full url with scheme, domain, optionally port, and pathheaders- HTTP header keys and valuescallback- Callbacks for various websocket events
Trait Implementations§
impl Eq for Ref<Metadata>
impl<T: RefCountable + Eq> Eq for Ref<T>
Auto Trait Implementations§
impl<T> Freeze for Ref<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ref<T>where
T: RefUnwindSafe,
impl<T> Send for Ref<T>where
T: Send,
impl<T> Sync for Ref<T>where
T: Sync,
impl<T> Unpin for Ref<T>where
T: Unpin,
impl<T> UnwindSafe for Ref<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more