binaryninja::collaboration

Struct RemoteSnapshot

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

Implementations§

source§

impl RemoteSnapshot

source

pub fn get_for_local_snapshot( snapshot: &Snapshot, ) -> Result<Option<Ref<RemoteSnapshot>>, ()>

Get the remote snapshot associated with a local snapshot (if it exists)

source

pub fn file(&self) -> Result<Ref<RemoteFile>, ()>

Owning File

source

pub fn project(&self) -> Result<Ref<RemoteProject>, ()>

Owning Project

source

pub fn remote(&self) -> Result<Ref<Remote>, ()>

Owning Remote

source

pub fn url(&self) -> BnString

Web api endpoint url

source

pub fn id(&self) -> BnString

Unique id

source

pub fn name(&self) -> BnString

Name of snapshot

source

pub fn title(&self) -> BnString

Get the title of a snapshot: the first line of its name

source

pub fn description(&self) -> BnString

Get the description of a snapshot: the lines of its name after the first line

source

pub fn author(&self) -> BnString

Get the user id of the author of a snapshot

source

pub fn author_username(&self) -> BnString

Get the username of the author of a snapshot, if possible (vs author which is user id)

source

pub fn created(&self) -> SystemTime

Created date of Snapshot

source

pub fn last_modified(&self) -> SystemTime

Date of last modification to the snapshot

source

pub fn hash(&self) -> BnString

Hash of snapshot data (analysis and markup, etc) No specific hash algorithm is guaranteed

source

pub fn snapshot_file_hash(&self) -> BnString

Hash of file contents in snapshot No specific hash algorithm is guaranteed

source

pub fn has_pulled_undo_entries(&self) -> bool

If the snapshot has pulled undo entries yet

source

pub fn is_finalized(&self) -> bool

If the snapshot has been finalized on the server and is no longer editable

source

pub fn parent_ids(&self) -> Result<Array<BnString>, ()>

List of ids of all remote parent Snapshots

source

pub fn child_ids(&self) -> Result<Array<BnString>, ()>

List of ids of all remote child Snapshots

source

pub fn parents(&self) -> Result<Array<RemoteSnapshot>, ()>

List of all parent Snapshot objects

source

pub fn children(&self) -> Result<Array<RemoteSnapshot>, ()>

List of all child Snapshot objects

source

pub fn undo_entries(&self) -> Result<Array<RemoteUndoEntry>, ()>

Get the list of undo entries stored in this snapshot.

NOTE: If undo entries have not been pulled, they will be pulled upon calling this.

source

pub fn get_undo_entry_by_id( &self, id: RemoteUndoEntryId, ) -> Result<Option<Ref<RemoteUndoEntry>>, ()>

Get a specific Undo Entry in the Snapshot by its id

NOTE: If undo entries have not been pulled, they will be pulled upon calling this.

source

pub fn pull_undo_entries(&self) -> Result<(), ()>

Pull the list of Undo Entries from the Remote.

source

pub fn pull_undo_entries_with_progress<P: ProgressCallback>( &self, progress: P, ) -> Result<(), ()>

Pull the list of Undo Entries from the Remote.

source

pub fn create_undo_entry<S: BnStrCompatible>( &self, parent: Option<u64>, data: S, ) -> Result<Ref<RemoteUndoEntry>, ()>

Create a new Undo Entry in this snapshot.

source

pub fn finalize(&self) -> Result<(), ()>

Mark a snapshot as Finalized, committing it to the Remote, preventing future updates, and allowing snapshots to be children of it.

source

pub fn get_local_snapshot( &self, bv: &BinaryView, ) -> Result<Option<Ref<Snapshot>>, ()>

Get the local snapshot associated with a remote snapshot (if it exists)

source

pub fn analysis_cache_build_id(&self) -> u64

Trait Implementations§

source§

impl CoreArrayProvider for RemoteSnapshot

source§

impl PartialEq for RemoteSnapshot

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToOwned for RemoteSnapshot

source§

type Owned = Ref<RemoteSnapshot>

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Eq for RemoteSnapshot

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.