Rc

Trait Rc 

Source
pub trait Rc {
    // Required method
    fn as_base(&self) -> &cef_base_ref_counted_t;

    // Provided methods
    unsafe fn add_ref(&self) { ... }
    unsafe fn release(&self) -> bool { ... }
    fn has_one_ref(&self) -> bool { ... }
    fn has_at_least_one_ref(&self) -> bool { ... }
}
Expand description

Reference counted trait for types has cef_base_ref_counted_t.

Required Methods§

Source

fn as_base(&self) -> &cef_base_ref_counted_t

Get the reference of cef_base_ref_counted_t.

Provided Methods§

Source

unsafe fn add_ref(&self)

Increase the reference count by 1.

§Safety

Calling this method when you need to manually handle the reference count. Otherwise, these methods shouldn’t be called externally in most cases.

Source

unsafe fn release(&self) -> bool

Decrease reference count by 1 and release the value if the count meets 0. Reuturn True if it is released.

§Safety

Calling this method when you need to manually handle the reference count. Otherwise, these methods shouldn’t be called externally in most cases.

Source

fn has_one_ref(&self) -> bool

True if the reference count is exactly 1.

Source

fn has_at_least_one_ref(&self) -> bool

True if the reference count is larger than 0.

Implementations on Foreign Types§

Source§

impl Rc for _cef_accessibility_handler_t

Source§

impl Rc for _cef_app_t

Source§

impl Rc for _cef_audio_handler_t

Source§

impl Rc for _cef_auth_callback_t

Source§

impl Rc for _cef_before_download_callback_t

Source§

impl Rc for _cef_binary_value_t

Source§

impl Rc for _cef_box_layout_t

Source§

impl Rc for _cef_browser_host_t

Source§

impl Rc for _cef_browser_process_handler_t

Source§

impl Rc for _cef_browser_t

Source§

impl Rc for _cef_browser_view_delegate_t

Source§

impl Rc for _cef_browser_view_t

Source§

impl Rc for _cef_button_delegate_t

Source§

impl Rc for _cef_button_t

Source§

impl Rc for _cef_callback_t

Source§

impl Rc for _cef_client_t

Source§

impl Rc for _cef_command_handler_t

Source§

impl Rc for _cef_command_line_t

Source§

impl Rc for _cef_completion_callback_t

Source§

impl Rc for _cef_context_menu_handler_t

Source§

impl Rc for _cef_context_menu_params_t

Source§

impl Rc for _cef_delete_cookies_callback_t

Source§

impl Rc for _cef_dev_tools_message_observer_t

Source§

impl Rc for _cef_dialog_handler_t

Source§

impl Rc for _cef_dictionary_value_t

Source§

impl Rc for _cef_display_handler_t

Source§

impl Rc for _cef_display_t

Source§

impl Rc for _cef_domdocument_t

Source§

impl Rc for _cef_domnode_t

Source§

impl Rc for _cef_domvisitor_t

Source§

impl Rc for _cef_download_handler_t

Source§

impl Rc for _cef_download_image_callback_t

Source§

impl Rc for _cef_download_item_callback_t

Source§

impl Rc for _cef_download_item_t

Source§

impl Rc for _cef_drag_data_t

Source§

impl Rc for _cef_drag_handler_t

Source§

impl Rc for _cef_file_dialog_callback_t

Source§

impl Rc for _cef_fill_layout_t

Source§

impl Rc for _cef_find_handler_t

Source§

impl Rc for _cef_focus_handler_t

Source§

impl Rc for _cef_frame_handler_t

Source§

impl Rc for _cef_frame_t

Source§

impl Rc for _cef_image_t

Source§

impl Rc for _cef_jsdialog_callback_t

Source§

impl Rc for _cef_jsdialog_handler_t

Source§

impl Rc for _cef_keyboard_handler_t

Source§

impl Rc for _cef_label_button_t

Source§

impl Rc for _cef_layout_t

Source§

impl Rc for _cef_life_span_handler_t

Source§

impl Rc for _cef_list_value_t

Source§

impl Rc for _cef_load_handler_t

Source§

impl Rc for _cef_media_access_callback_t

Source§

impl Rc for _cef_media_observer_t

Source§

impl Rc for _cef_media_route_create_callback_t

Source§

impl Rc for _cef_media_route_t

Source§

impl Rc for _cef_media_router_t

Source§

impl Rc for _cef_media_sink_device_info_callback_t

Source§

impl Rc for _cef_media_sink_t

Source§

impl Rc for _cef_media_source_t

Source§

impl Rc for _cef_menu_button_delegate_t

Source§

impl Rc for _cef_menu_button_pressed_lock_t

Source§

impl Rc for _cef_menu_button_t

Source§

impl Rc for _cef_menu_model_delegate_t

Source§

impl Rc for _cef_menu_model_t

Source§

impl Rc for _cef_navigation_entry_t

Source§

impl Rc for _cef_navigation_entry_visitor_t

Source§

impl Rc for _cef_overlay_controller_t

Source§

impl Rc for _cef_panel_delegate_t

Source§

impl Rc for _cef_panel_t

Source§

impl Rc for _cef_pdf_print_callback_t

Source§

impl Rc for _cef_permission_handler_t

Source§

impl Rc for _cef_permission_prompt_callback_t

Source§

impl Rc for _cef_post_data_element_t

Source§

impl Rc for _cef_post_data_t

Source§

impl Rc for _cef_preference_manager_t

Source§

impl Rc for _cef_preference_observer_t

Source§

impl Rc for _cef_print_dialog_callback_t

Source§

impl Rc for _cef_print_handler_t

Source§

impl Rc for _cef_print_job_callback_t

Source§

impl Rc for _cef_print_settings_t

Source§

impl Rc for _cef_process_message_t

Source§

impl Rc for _cef_read_handler_t

Source§

impl Rc for _cef_registration_t

Source§

impl Rc for _cef_render_handler_t

Source§

impl Rc for _cef_render_process_handler_t

Source§

impl Rc for _cef_request_context_handler_t

Source§

impl Rc for _cef_request_context_t

Source§

impl Rc for _cef_request_handler_t

Source§

impl Rc for _cef_request_t

Source§

impl Rc for _cef_resolve_callback_t

Source§

impl Rc for _cef_resource_bundle_handler_t

Source§

impl Rc for _cef_resource_handler_t

Source§

impl Rc for _cef_resource_read_callback_t

Source§

impl Rc for _cef_resource_request_handler_t

Source§

impl Rc for _cef_resource_skip_callback_t

Source§

impl Rc for _cef_response_filter_t

Source§

impl Rc for _cef_response_t

Source§

impl Rc for _cef_run_context_menu_callback_t

Source§

impl Rc for _cef_run_file_dialog_callback_t

Source§

impl Rc for _cef_run_quick_menu_callback_t

Source§

impl Rc for _cef_scheme_handler_factory_t

Source§

impl Rc for _cef_scroll_view_t

Source§

impl Rc for _cef_select_client_certificate_callback_t

Source§

impl Rc for _cef_setting_observer_t

Source§

impl Rc for _cef_shared_memory_region_t

Source§

impl Rc for _cef_sslinfo_t

Source§

impl Rc for _cef_sslstatus_t

Source§

impl Rc for _cef_stream_reader_t

Source§

impl Rc for _cef_stream_writer_t

Source§

impl Rc for _cef_string_visitor_t

Source§

impl Rc for _cef_task_runner_t

Source§

impl Rc for _cef_task_t

Source§

impl Rc for _cef_textfield_delegate_t

Source§

impl Rc for _cef_textfield_t

Source§

impl Rc for _cef_unresponsive_process_callback_t

Source§

impl Rc for _cef_urlrequest_client_t

Source§

impl Rc for _cef_urlrequest_t

Source§

impl Rc for _cef_v8_accessor_t

Source§

impl Rc for _cef_v8_array_buffer_release_callback_t

Source§

impl Rc for _cef_v8_context_t

Source§

impl Rc for _cef_v8_exception_t

Source§

impl Rc for _cef_v8_handler_t

Source§

impl Rc for _cef_v8_interceptor_t

Source§

impl Rc for _cef_v8_stack_frame_t

Source§

impl Rc for _cef_v8_stack_trace_t

Source§

impl Rc for _cef_v8_value_t

Source§

impl Rc for _cef_value_t

Source§

impl Rc for _cef_view_delegate_t

Source§

impl Rc for _cef_view_t

Source§

impl Rc for _cef_window_delegate_t

Source§

impl Rc for _cef_window_t

Source§

impl Rc for _cef_write_handler_t

Source§

impl Rc for _cef_x509_cert_principal_t

Source§

impl Rc for _cef_x509_certificate_t

Source§

impl Rc for cef_base_ref_counted_t

Source§

unsafe fn add_ref(&self)

Source§

fn has_one_ref(&self) -> bool

Source§

fn has_at_least_one_ref(&self) -> bool

Source§

unsafe fn release(&self) -> bool

Source§

fn as_base(&self) -> &Self

Implementors§

Source§

impl Rc for AccessibilityHandler

Source§

impl Rc for App

Source§

impl Rc for AudioHandler

Source§

impl Rc for AuthCallback

Source§

impl Rc for BaseRefCounted

Source§

impl Rc for BeforeDownloadCallback

Source§

impl Rc for BinaryValue

Source§

impl Rc for BoxLayout

Source§

impl Rc for Browser

Source§

impl Rc for BrowserHost

Source§

impl Rc for BrowserProcessHandler

Source§

impl Rc for BrowserView

Source§

impl Rc for BrowserViewDelegate

Source§

impl Rc for Button

Source§

impl Rc for ButtonDelegate

Source§

impl Rc for Callback

Source§

impl Rc for CefStringVisitor

Source§

impl Rc for Client

Source§

impl Rc for CommandHandler

Source§

impl Rc for CommandLine

Source§

impl Rc for CompletionCallback

Source§

impl Rc for ContextMenuHandler

Source§

impl Rc for ContextMenuParams

Source§

impl Rc for CookieAccessFilter

Source§

impl Rc for CookieManager

Source§

impl Rc for CookieVisitor

Source§

impl Rc for DeleteCookiesCallback

Source§

impl Rc for DevToolsMessageObserver

Source§

impl Rc for DialogHandler

Source§

impl Rc for DictionaryValue

Source§

impl Rc for Display

Source§

impl Rc for DisplayHandler

Source§

impl Rc for Domdocument

Source§

impl Rc for Domnode

Source§

impl Rc for Domvisitor

Source§

impl Rc for DownloadHandler

Source§

impl Rc for DownloadImageCallback

Source§

impl Rc for DownloadItem

Source§

impl Rc for DownloadItemCallback

Source§

impl Rc for DragData

Source§

impl Rc for DragHandler

Source§

impl Rc for FileDialogCallback

Source§

impl Rc for FillLayout

Source§

impl Rc for FindHandler

Source§

impl Rc for FocusHandler

Source§

impl Rc for Frame

Source§

impl Rc for FrameHandler

Source§

impl Rc for Image

Source§

impl Rc for JsdialogCallback

Source§

impl Rc for JsdialogHandler

Source§

impl Rc for KeyboardHandler

Source§

impl Rc for LabelButton

Source§

impl Rc for Layout

Source§

impl Rc for LifeSpanHandler

Source§

impl Rc for ListValue

Source§

impl Rc for LoadHandler

Source§

impl Rc for MediaAccessCallback

Source§

impl Rc for MediaObserver

Source§

impl Rc for MediaRoute

Source§

impl Rc for MediaRouteCreateCallback

Source§

impl Rc for MediaRouter

Source§

impl Rc for MediaSink

Source§

impl Rc for MediaSinkDeviceInfoCallback

Source§

impl Rc for MediaSource

Source§

impl Rc for MenuButton

Source§

impl Rc for MenuButtonDelegate

Source§

impl Rc for MenuButtonPressedLock

Source§

impl Rc for MenuModel

Source§

impl Rc for MenuModelDelegate

Source§

impl Rc for NavigationEntry

Source§

impl Rc for NavigationEntryVisitor

Source§

impl Rc for OverlayController

Source§

impl Rc for Panel

Source§

impl Rc for PanelDelegate

Source§

impl Rc for PdfPrintCallback

Source§

impl Rc for PermissionHandler

Source§

impl Rc for PermissionPromptCallback

Source§

impl Rc for PostData

Source§

impl Rc for PostDataElement

Source§

impl Rc for PreferenceManager

Source§

impl Rc for PreferenceObserver

Source§

impl Rc for PrintDialogCallback

Source§

impl Rc for PrintHandler

Source§

impl Rc for PrintJobCallback

Source§

impl Rc for PrintSettings

Source§

impl Rc for ProcessMessage

Source§

impl Rc for ReadHandler

Source§

impl Rc for Registration

Source§

impl Rc for RenderHandler

Source§

impl Rc for RenderProcessHandler

Source§

impl Rc for Request

Source§

impl Rc for RequestContext

Source§

impl Rc for RequestContextHandler

Source§

impl Rc for RequestHandler

Source§

impl Rc for ResolveCallback

Source§

impl Rc for ResourceBundleHandler

Source§

impl Rc for ResourceHandler

Source§

impl Rc for ResourceReadCallback

Source§

impl Rc for ResourceRequestHandler

Source§

impl Rc for ResourceSkipCallback

Source§

impl Rc for Response

Source§

impl Rc for ResponseFilter

Source§

impl Rc for RunContextMenuCallback

Source§

impl Rc for RunFileDialogCallback

Source§

impl Rc for RunQuickMenuCallback

Source§

impl Rc for SchemeHandlerFactory

Source§

impl Rc for ScrollView

Source§

impl Rc for SelectClientCertificateCallback

Source§

impl Rc for SetCookieCallback

Source§

impl Rc for SettingObserver

Source§

impl Rc for SharedMemoryRegion

Source§

impl Rc for Sslinfo

Source§

impl Rc for Sslstatus

Source§

impl Rc for StreamReader

Source§

impl Rc for StreamWriter

Source§

impl Rc for Task

Source§

impl Rc for TaskRunner

Source§

impl Rc for Textfield

Source§

impl Rc for TextfieldDelegate

Source§

impl Rc for UnresponsiveProcessCallback

Source§

impl Rc for Urlrequest

Source§

impl Rc for UrlrequestClient

Source§

impl Rc for V8Accessor

Source§

impl Rc for V8ArrayBufferReleaseCallback

Source§

impl Rc for V8Context

Source§

impl Rc for V8Exception

Source§

impl Rc for V8Handler

Source§

impl Rc for V8Interceptor

Source§

impl Rc for V8StackFrame

Source§

impl Rc for V8StackTrace

Source§

impl Rc for V8Value

Source§

impl Rc for Value

Source§

impl Rc for View

Source§

impl Rc for ViewDelegate

Source§

impl Rc for Window

Source§

impl Rc for WindowDelegate

Source§

impl Rc for WriteHandler

Source§

impl Rc for X509CertPrincipal

Source§

impl Rc for X509Certificate