pub struct AsmServer {
pub loading_state: LoadingState,
pub accessor: ArcNullable<AccessorEnum>,
/* private fields */
}Fields§
§loading_state: LoadingState§accessor: ArcNullable<AccessorEnum>Implementations§
Source§impl AsmServer
impl AsmServer
pub fn new() -> Self
pub fn get_classes(&self) -> &ArcNullable<Vec<StrRef>>
pub fn get_trie(&self) -> &ArcNullable<Trie<u8>>
pub fn smart_open(server: ServerMut, path: &str, render_target: AppContainer)
pub fn switch_or_open(&self, file_key: &str, render_target: &AppContainer)
pub fn switch_or_open_lock_free( &self, file_key: &str, accessor: &AccessorEnum, content: &mut Content, top: &mut Top, )
pub fn search(&self, top: &mut Top)
Source§impl AsmServer
I/O operation processing
impl AsmServer
I/O operation processing
pub fn dialog_to_open_file(server: ServerMut, render_target: AppContainer)
pub fn dialog_to_save_file(&self, source_key: &str)
Source§impl AsmServer
Abilities when file loaded.
impl AsmServer
Abilities when file loaded.
Such abilities just a wrapper of Accessor, but provided a more convenient interface and record some logs at the backend.
pub fn read_classes(&self) -> Vec<StrRef> ⓘ
Sourcepub fn find_class(&self, class_key: &str) -> bool
pub fn find_class(&self, class_key: &str) -> bool
see also: AccessorEnum::exist_class
pub fn read_content(&self, class_key: &str) -> Option<SmaliNode>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsmServer
impl !RefUnwindSafe for AsmServer
impl Send for AsmServer
impl Sync for AsmServer
impl Unpin for AsmServer
impl !UnwindSafe for AsmServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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