pub struct TabsStore {
pub storage: Mutex<TabsStorage>,
}
Fields§
§storage: Mutex<TabsStorage>
Implementations§
Source§impl TabsStore
impl TabsStore
pub fn new(db_path: impl AsRef<Path>) -> Self
pub fn new_with_mem_path(db_path: &str) -> Self
pub fn close_connection(&self)
pub fn set_local_tabs(&self, local_state: Vec<RemoteTab>)
pub fn get_all(&self) -> Vec<ClientRemoteTabs>
pub fn remote_tabs(&self) -> Option<Vec<ClientRemoteTabs>>
pub fn new_remote_command_store(self: Arc<Self>) -> Arc<RemoteCommandStore>
Source§impl TabsStore
impl TabsStore
pub fn bridged_engine(self: Arc<Self>) -> Arc<TabsBridgedEngine>
Trait Implementations§
§impl<UT> LowerError<UT> for TabsStore
impl<UT> LowerError<UT> for TabsStore
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> LowerReturn<UT> for TabsStore
impl<UT> LowerReturn<UT> for TabsStore
§type ReturnType = <Arc<TabsStore> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<TabsStore> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
§impl<UT> TypeId<UT> for TabsStore
impl<UT> TypeId<UT> for TabsStore
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl !Freeze for TabsStore
impl RefUnwindSafe for TabsStore
impl Send for TabsStore
impl Sync for TabsStore
impl Unpin for TabsStore
impl UnwindSafe for TabsStore
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more