XU XUv0.8.8
EN

API

#ui

import: #ui

counts: 71 函数, 17 方法, 10 类型, 47 常量, 0 方法集

窗口/菜单/托盘。host 未接时 run 会报 host not available。

const content_none

XuAPI
pub const content_none = 0

用途

公开常量 `content_none`。 值为 `0`

参数

无

const content_webview

XuAPI
pub const content_webview = 1

用途

公开常量 `content_webview`。 值为 `1`

参数

无

const content_draw

XuAPI
pub const content_draw = 2

用途

公开常量 `content_draw`。 值为 `2`

参数

无

const content_native

XuAPI
pub const content_native = 3

用途

公开常量 `content_native`。 值为 `3`

参数

无

struct ContentPlugin

XuAPI
pub struct ContentPlugin {
    pub kind int
    pub bootstrap string
    pub macos_src string
    pub macos_frameworks string
    pub linux_src string
    pub linux_libs string
    pub windows_src string
    pub windows_libs string
}

用途

公开结构体 `ContentPlugin`。

参数

kind int
类型标签
bootstrap string
字段(string)
macos_src string
字段(string)
macos_frameworks string
字段(string)
linux_src string
字段(string)
linux_libs string
字段(string)
windows_src string
字段(string)
windows_libs string
字段(string)

const os_macos

XuAPI
pub const os_macos = 0

用途

公开常量 `os_macos`。 值为 `0`

参数

无

const os_linux

XuAPI
pub const os_linux = 1

用途

公开常量 `os_linux`。 值为 `1`

参数

无

const os_windows

XuAPI
pub const os_windows = 2

用途

公开常量 `os_windows`。 值为 `2`

参数

无

const os_none

XuAPI
pub const os_none = 3

用途

公开常量 `os_none`。 值为 `3`

参数

无

const ev_none

XuAPI
pub const ev_none = 0

用途

公开常量 `ev_none`。 值为 `0`

参数

无

const ev_ready

XuAPI
pub const ev_ready = 1

用途

公开常量 `ev_ready`。 值为 `1`

参数

无

const ev_exit

XuAPI
pub const ev_exit = 2

用途

公开常量 `ev_exit`。 值为 `2`

参数

无

const ev_before_exit

XuAPI
pub const ev_before_exit = 3

用途

公开常量 `ev_before_exit`。 值为 `3`

参数

无

const ev_close_requested

XuAPI
pub const ev_close_requested = 10

用途

公开常量 `ev_close_requested`。 值为 `10`

参数

无

const ev_closed

XuAPI
pub const ev_closed = 11

用途

公开常量 `ev_closed`。 值为 `11`

参数

无

const ev_focused

XuAPI
pub const ev_focused = 12

用途

公开常量 `ev_focused`。 值为 `12`

参数

无

const ev_blurred

XuAPI
pub const ev_blurred = 13

用途

公开常量 `ev_blurred`。 值为 `13`

参数

无

const ev_resized

XuAPI
pub const ev_resized = 14

用途

公开常量 `ev_resized`。 值为 `14`

参数

无

const ev_moved

XuAPI
pub const ev_moved = 15

用途

公开常量 `ev_moved`。 值为 `15`

参数

无

const ev_menu_clicked

XuAPI
pub const ev_menu_clicked = 20

用途

公开常量 `ev_menu_clicked`。 值为 `20`

参数

无

const ev_tray_clicked

XuAPI
pub const ev_tray_clicked = 30

用途

公开常量 `ev_tray_clicked`。 值为 `30`

参数

无

const ev_tray_menu_clicked

XuAPI
pub const ev_tray_menu_clicked = 31

用途

公开常量 `ev_tray_menu_clicked`。 值为 `31`

参数

无

const ev_loading

XuAPI
pub const ev_loading = 40

用途

公开常量 `ev_loading`。 值为 `40`

参数

无

const ev_loaded

XuAPI
pub const ev_loaded = 41

用途

公开常量 `ev_loaded`。 值为 `41`

参数

无

const ev_load_failed

XuAPI
pub const ev_load_failed = 42

用途

公开常量 `ev_load_failed`。 值为 `42`

参数

无

const ev_progress

XuAPI
pub const ev_progress = 43

用途

公开常量 `ev_progress`。 值为 `43`

参数

无

const ev_file_drop

XuAPI
pub const ev_file_drop = 50

用途

公开常量 `ev_file_drop`。 值为 `50`

参数

无

const ev_file_picked

XuAPI
pub const ev_file_picked = 51

用途

公开常量 `ev_file_picked`。 值为 `51`

参数

无

const ev_file_saved

XuAPI
pub const ev_file_saved = 52

用途

公开常量 `ev_file_saved`。 值为 `52`

参数

无

const ev_external_nav

XuAPI
pub const ev_external_nav = 53

用途

公开常量 `ev_external_nav`。 值为 `53`

参数

无

const ev_screenshot

XuAPI
pub const ev_screenshot = 54

用途

公开常量 `ev_screenshot`。 值为 `54`

参数

无

const ev_folder_picked

XuAPI
pub const ev_folder_picked = 55

用途

公开常量 `ev_folder_picked`。 值为 `55`

参数

无

const ev_alert

XuAPI
pub const ev_alert = 56

用途

公开常量 `ev_alert`。 值为 `56`

参数

无

const ev_confirm

XuAPI
pub const ev_confirm = 57

用途

公开常量 `ev_confirm`。 值为 `57`

参数

无

const ev_notify

XuAPI
pub const ev_notify = 58

用途

公开常量 `ev_notify`。 值为 `58`

参数

无

const ev_close_rejected

XuAPI
pub const ev_close_rejected = 59

用途

公开常量 `ev_close_rejected`。 值为 `59`

参数

无

const ev_cache_cleared

XuAPI
pub const ev_cache_cleared = 60

用途

公开常量 `ev_cache_cleared`。 值为 `60`

参数

无

const ev_download

XuAPI
pub const ev_download = 61

用途

公开常量 `ev_download`。 值为 `61`

参数

无

const ev_download_failed

XuAPI
pub const ev_download_failed = 62

用途

公开常量 `ev_download_failed`。 值为 `62`

参数

无

const ev_cookies_cleared

XuAPI
pub const ev_cookies_cleared = 63

用途

公开常量 `ev_cookies_cleared`。 值为 `63`

参数

无

const ev_clipboard

XuAPI
pub const ev_clipboard = 65

用途

公开常量 `ev_clipboard`。 值为 `65`

参数

无

const ev_bounds

XuAPI
pub const ev_bounds = 66

用途

公开常量 `ev_bounds`。 值为 `66`

参数

无

const ev_state

XuAPI
pub const ev_state = 67

用途

公开常量 `ev_state`。 值为 `67`

参数

无

const ev_click

XuAPI
pub const ev_click = 68

用途

公开常量 `ev_click`。 值为 `68`

参数

无

const ev_prompt

XuAPI
pub const ev_prompt = 69

用途

公开常量 `ev_prompt`。 值为 `69`

参数

无

const ev_scroll

XuAPI
pub const ev_scroll = 70

用途

公开常量 `ev_scroll`。 值为 `70`

参数

无

const ev_drag

XuAPI
pub const ev_drag = 71

用途

公开常量 `ev_drag`。 值为 `71`

参数

无

struct Event

XuAPI
pub struct Event {
    pub kind int
    pub window_id int
    pub menu_id string
    pub width int
    pub height int
}

用途

公开结构体 `Event`。

参数

kind int
类型标签
window_id int
字段(int)
menu_id string
字段(string)
width int
字段(int)
height int
字段(int)

struct Icon

XuAPI
pub struct Icon {
    pub path string
}

用途

公开结构体 `Icon`。

参数

path string
文件系统路径

struct MenuItem

XuAPI
pub struct MenuItem {
    pub id string
    pub label string
}

用途

公开结构体 `MenuItem`。

参数

id string
字段(string)
label string
字段(string)

struct Menu

XuAPI
pub struct Menu {
    pub items []MenuItem
}

用途

公开结构体 `Menu`。

参数

items []MenuItem
元素列表

struct WindowOpts

XuAPI
pub struct WindowOpts {
    pub title string
    pub width int
    pub height int
}

用途

公开结构体 `WindowOpts`。

参数

title string
字段(string)
width int
字段(int)
height int
字段(int)

struct Window

XuAPI
pub struct Window {
    pub id int
    pub title string
    pub width int
    pub height int
    pub content_kind int
    pub content_backend_id int
    pub closed int
}

用途

公开结构体 `Window`。

参数

id int
字段(int)
title string
字段(string)
width int
字段(int)
height int
字段(int)
content_kind int
字段(int)
content_backend_id int
字段(int)
closed int
字段(int)

struct TrayOpts

XuAPI
pub struct TrayOpts {
    pub tip string
    pub icon Icon
    pub menu Menu
}

用途

公开结构体 `TrayOpts`。

参数

tip string
字段(string)
icon Icon
字段(Icon)
menu Menu
字段(Menu)

struct Tray

XuAPI
pub struct Tray {
    pub id int
    pub tip string
}

用途

公开结构体 `Tray`。

参数

id int
字段(int)
tip string
字段(string)

struct App

XuAPI
pub struct App {
    pub next_id int
    pub icon Icon
    pub quit_flag int
    pub sim int
    pub event_ch chan Event
    pub post_ch chan int
    pub menu_ids []string
    pub win_title string
    pub win_w int
    pub win_h int
}

用途

公开结构体 `App`。

参数

next_id int
字段(int)
icon Icon
字段(Icon)
quit_flag int
字段(int)
sim int
字段(int)
event_ch chan Event
字段(通道;类型 chan Event)
post_ch chan int
字段(通道;类型 chan int)
menu_ids []string
字段([]string)
win_title string
字段(string)
win_w int
字段(int)
win_h int
字段(int)

new_app

XuAPI
pub fn new_app() App

用途

构造 app。

参数

无

返回

App — 该类型的值

new_app_events

XuAPI
pub fn new_app_events(ech chan Event) App

用途

构造 app events。

参数

ech chan Event
ech(通道;类型 chan Event)

返回

App — 该类型的值

icon_default

XuAPI
pub fn icon_default() Icon

用途

icondefault。

参数

无

返回

Icon — 该类型的值

icon_from_file

XuAPI
pub fn icon_from_file(path string) Icon

用途

icon从文件。

参数

path string
文件系统路径(string)

返回

Icon — 该类型的值

target_os

XuAPI
pub fn target_os() int

用途

targetos。

参数

无

返回

int — 该类型的值

platform_supported

XuAPI
pub fn platform_supported() bool

用途

platformsupported。

参数

无

返回

bool — 是否成立

(&mut App) alloc_id

XuAPI
pub fn (a &mut App) alloc_id() int

用途

`&mut App` 上的方法:allocid。

参数

a &mut App
接收者 &mut App(可变借用)

返回

int — 该类型的值

(&mut App) set_icon

XuAPI
pub fn (a &mut App) set_icon(icon Icon)

用途

`&mut App` 上的方法:设置 icon。

参数

a &mut App
接收者 &mut App(可变借用)
icon Icon
icon(Icon)

install_tray_icon

XuAPI
pub fn install_tray_icon(path string) int

用途

installtrayicon。失败时 throw。

参数

path string
文件系统路径(string)

返回

int — 该类型的值

(&mut App) new_window

XuAPI
pub fn (a &mut App) new_window(opts WindowOpts) Window

用途

`&mut App` 上的方法:构造 window。

参数

a &mut App
接收者 &mut App(可变借用)
opts WindowOpts
opts(WindowOpts)

返回

Window — 该类型的值

install_menu

XuAPI
pub fn install_menu(m Menu) int

用途

installmenu。失败时 throw。

参数

m Menu
m(Menu)

返回

int — 该类型的值

native_set_menu_visible

XuAPI
pub fn native_set_menu_visible(on int) int

用途

nativesetmenuvisible。失败时 throw。

参数

on int
on(int)

返回

int — 该类型的值

install_tray

XuAPI
pub fn install_tray(tip string, m Menu) int

用途

installtray。失败时 throw。

参数

tip string
tip(string)
m Menu
m(Menu)

返回

int — 该类型的值

(&mut Window) set_menu

XuAPI
pub fn (w &mut Window) set_menu(m Menu)

用途

`&mut Window` 上的方法:设置 menu。

参数

w &mut Window
接收者 &mut Window(可变借用)
m Menu
m(Menu)

(&mut App) new_tray

XuAPI
pub fn (a &mut App) new_tray(opts TrayOpts) Tray

用途

`&mut App` 上的方法:构造 tray。

参数

a &mut App
接收者 &mut App(可变借用)
opts TrayOpts
opts(TrayOpts)

返回

Tray — 该类型的值

(&mut Window) set_title

XuAPI
pub fn (w &mut Window) set_title(title string)

用途

`&mut Window` 上的方法:设置 title。

参数

w &mut Window
接收者 &mut Window(可变借用)
title string
title(string)

native_set_title

XuAPI
pub fn native_set_title(title string) int

用途

nativesettitle。失败时 throw。

参数

title string
title(string)

返回

int — 该类型的值

native_set_size

XuAPI
pub fn native_set_size(width int, height int) int

用途

nativeset尺寸。失败时 throw。

参数

width int
width(int)
height int
height(int)

返回

int — 该类型的值

append_shell_cmd

XuAPI
pub fn append_shell_cmd(line string) int

用途

appendshellcmd。失败时 throw。

参数

line string
line(string)

返回

int — 该类型的值

append_content_cmd

XuAPI
pub fn append_content_cmd(line string) int

用途

appendcontentcmd。失败时 throw。

参数

line string
line(string)

返回

int — 该类型的值

append_wv_cmd

XuAPI
pub fn append_wv_cmd(line string) int

用途

appendwvcmd。失败时 throw。

参数

line string
line(string)

返回

int — 该类型的值

host_enabled

XuAPI
pub fn host_enabled() bool

用途

主机enabled。

参数

无

返回

bool — 是否成立

host_tmp

XuAPI
pub fn host_tmp() string

用途

主机tmp。

参数

无

返回

string — 结果字符串

native_show

XuAPI
pub fn native_show() int

用途

nativeshow。失败时 throw。

参数

无

返回

int — 该类型的值

native_hide

XuAPI
pub fn native_hide() int

用途

nativehide。失败时 throw。

参数

无

返回

int — 该类型的值

native_minimize

XuAPI
pub fn native_minimize() int

用途

nativeminimize。失败时 throw。

参数

无

返回

int — 该类型的值

native_set_position

XuAPI
pub fn native_set_position(x int, y int) int

用途

nativesetposition。失败时 throw。

参数

x int
值(int)
y int
值(int)

返回

int — 该类型的值

native_set_fullscreen

XuAPI
pub fn native_set_fullscreen(on int) int

用途

nativesetfullscreen。失败时 throw。

参数

on int
on(int)

返回

int — 该类型的值

native_set_floating

XuAPI
pub fn native_set_floating(on int) int

用途

nativesetfloating。失败时 throw。

参数

on int
on(int)

返回

int — 该类型的值

native_center

XuAPI
pub fn native_center() int

用途

nativecenter。失败时 throw。

参数

无

返回

int — 该类型的值

native_open_external

XuAPI
pub fn native_open_external(url string) int

用途

native打开external。失败时 throw。

参数

url string
url(string)

返回

int — 该类型的值

native_clipboard_set

XuAPI
pub fn native_clipboard_set(text string) int

用途

nativeclipboardset。失败时 throw。

参数

text string
文本(string)

返回

int — 该类型的值

native_clipboard_get

XuAPI
pub fn native_clipboard_get() string

用途

nativeclipboardget。

参数

无

返回

string — 结果字符串

native_set_maximized

XuAPI
pub fn native_set_maximized(on int) int

用途

nativesetmaximized。失败时 throw。

参数

on int
on(int)

返回

int — 该类型的值

native_bounce

XuAPI
pub fn native_bounce() int

用途

nativebounce。失败时 throw。

参数

无

返回

int — 该类型的值

native_pick_file

XuAPI
pub fn native_pick_file() string

用途

nativepick文件。

参数

无

返回

string — 结果字符串

native_set_opacity

XuAPI
pub fn native_set_opacity(percent int) int

用途

nativesetopacity。失败时 throw。

参数

percent int
percent(int)

返回

int — 该类型的值

native_save_file

XuAPI
pub fn native_save_file(suggested_name string) string

用途

nativesave文件。

参数

suggested_name string
suggested_name(string)

返回

string — 结果字符串

native_screenshot

XuAPI
pub fn native_screenshot() string

用途

nativescreenshot。

参数

无

返回

string — 结果字符串

native_alert

XuAPI
pub fn native_alert(title string, message string) int

用途

nativealert。

参数

title string
title(string)
message string
message(string)

返回

int — 该类型的值

native_confirm

XuAPI
pub fn native_confirm(title string, message string) int

用途

nativeconfirm。

参数

title string
title(string)
message string
message(string)

返回

int — 该类型的值

native_notify

XuAPI
pub fn native_notify(title string, body string) int

用途

native通知。

参数

title string
title(string)
body string
正文(string)

返回

int — 该类型的值

native_pick_folder

XuAPI
pub fn native_pick_folder() string

用途

nativepickfolder。

参数

无

返回

string — 结果字符串

native_set_min_size

XuAPI
pub fn native_set_min_size(width int, height int) int

用途

nativeset最小尺寸。失败时 throw。

参数

width int
width(int)
height int
height(int)

返回

int — 该类型的值

native_set_resizable

XuAPI
pub fn native_set_resizable(on int) int

用途

nativesetresizable。失败时 throw。

参数

on int
on(int)

返回

int — 该类型的值

native_get_bounds

XuAPI
pub fn native_get_bounds() string

用途

nativegetbounds。

参数

无

返回

string — 结果字符串

native_set_titlebar_visible

XuAPI
pub fn native_set_titlebar_visible(on int) int

用途

nativesettitlebarvisible。

参数

on int
on(int)

返回

int — 该类型的值

native_set_close_guard

XuAPI
pub fn native_set_close_guard(on int) int

用途

nativeset关闭guard。

参数

on int
on(int)

返回

int — 该类型的值

native_accept_close

XuAPI
pub fn native_accept_close() int

用途

关闭native接受。

参数

无

返回

int — 该类型的值

native_reject_close

XuAPI
pub fn native_reject_close() int

用途

关闭nativereject。

参数

无

返回

int — 该类型的值

native_set_visible_on_all_spaces

XuAPI
pub fn native_set_visible_on_all_spaces(on int) int

用途

nativesetvisible于allspaces。

参数

on int
on(int)

返回

int — 该类型的值

native_get_state

XuAPI
pub fn native_get_state() string

用途

nativegetstate。

参数

无

返回

string — 结果字符串

native_open_path

XuAPI
pub fn native_open_path(path string) int

用途

native打开path。

参数

path string
文件系统路径(string)

返回

int — 该类型的值

native_reveal_path

XuAPI
pub fn native_reveal_path(path string) int

用途

nativerevealpath。

参数

path string
文件系统路径(string)

返回

int — 该类型的值

native_set_appearance

XuAPI
pub fn native_set_appearance(mode string) int

用途

nativesetappearance。

参数

mode string
模式(string)

返回

int — 该类型的值

native_set_dock_badge

XuAPI
pub fn native_set_dock_badge(text string) int

用途

nativesetdockbadge。

参数

text string
文本(string)

返回

int — 该类型的值

native_screenshot_to_clipboard

XuAPI
pub fn native_screenshot_to_clipboard() int

用途

nativescreenshot到clipboard。

参数

无

返回

int — 该类型的值

native_set_shadow

XuAPI
pub fn native_set_shadow(on int) int

用途

nativesetshadow。

参数

on int
on(int)

返回

int — 该类型的值

native_set_frameless

XuAPI
pub fn native_set_frameless(on int) int

用途

nativesetframeless。

参数

on int
on(int)

返回

int — 该类型的值

native_set_transparent

XuAPI
pub fn native_set_transparent(on int) int

用途

nativesettransparent。

参数

on int
on(int)

返回

int — 该类型的值

native_set_window_mask

XuAPI
pub fn native_set_window_mask(path string) int

用途

nativesetwindowmask。失败时 throw。

参数

path string
文件系统路径(string)

返回

int — 该类型的值

native_clear_window_mask

XuAPI
pub fn native_clear_window_mask() int

用途

nativeclearwindowmask。

参数

无

返回

int — 该类型的值

native_quit

XuAPI
pub fn native_quit() int

用途

nativequit。失败时 throw。

参数

无

返回

int — 该类型的值

unsupported_msg

XuAPI
pub fn unsupported_msg() string

用途

unsupportedmsg。

参数

无

返回

string — 结果字符串

(&mut App) remember_menu

XuAPI
pub fn (a &mut App) remember_menu(m Menu)

用途

`&mut App` 上的方法:remembermenu。

参数

a &mut App
接收者 &mut App(可变借用)
m Menu
m(Menu)

(&mut Window) set_content_slot

XuAPI
pub fn (w &mut Window) set_content_slot(kind int, backend_id int)

用途

`&mut Window` 上的方法:设置 content slot。

参数

w &mut Window
接收者 &mut Window(可变借用)
kind int
类型标签(int)
backend_id int
backend_id(int)

(Window) content_slot_kind

XuAPI
pub fn (w Window) content_slot_kind() int

用途

`Window` 上的方法:contentslotkind。

参数

w Window
接收者 Window(值接收者)

返回

int — 该类型的值

(Window) content_slot_backend_id

XuAPI
pub fn (w Window) content_slot_backend_id() int

用途

`Window` 上的方法:contentslotbackendid。

参数

w Window
接收者 Window(值接收者)

返回

int — 该类型的值

(&mut Window) close

XuAPI
pub fn (w &mut Window) close()

用途

`&mut Window` 上的方法:关闭资源。

参数

w &mut Window
接收者 &mut Window(可变借用)

(&mut App) quit

XuAPI
pub fn (a &mut App) quit()

用途

在 `&mut App` 上调用 `quit`。

参数

a &mut App
接收者 &mut App(可变借用)

(&mut App) push_event

XuAPI
pub fn (a &mut App) push_event(ev Event)

用途

`&mut App` 上的方法:压入event。

参数

a &mut App
接收者 &mut App(可变借用)
ev Event
ev(Event)

(&mut App) poll_event

XuAPI
pub fn (a &mut App) poll_event() Event

用途

`&mut App` 上的方法:pollevent。

参数

a &mut App
接收者 &mut App(可变借用)

返回

Event — 该类型的值

(&mut App) post

XuAPI
pub fn (a &mut App) post(token int)

用途

在 `&mut App` 上调用 `post`。

参数

a &mut App
接收者 &mut App(可变借用)
token int
token(int)

(&mut App) try_recv_post

XuAPI
pub fn (a &mut App) try_recv_post() int

用途

`&mut App` 上的方法:tryrecvpost。

参数

a &mut App
接收者 &mut App(可变借用)

返回

int — 该类型的值

content_plugin_webview

XuAPI
pub fn content_plugin_webview() ContentPlugin

用途

contentpluginwebview。

参数

无

返回

ContentPlugin — 该类型的值

content_plugin_draw

XuAPI
pub fn content_plugin_draw() ContentPlugin

用途

contentplugindraw。

参数

无

返回

ContentPlugin — 该类型的值

use_draw_content

XuAPI
pub fn use_draw_content(w &mut Window) int

用途

usedrawcontent。

参数

w &mut Window
写入侧 / 宽度(独占借用;类型 &mut Window)

返回

int — 该类型的值

native_draw_set_bg

XuAPI
pub fn native_draw_set_bg(hex string) int

用途

nativedrawsetbg。失败时 throw。

参数

hex string
hex(string)

返回

int — 该类型的值

native_draw_clear

XuAPI
pub fn native_draw_clear() int

用途

nativedrawclear。失败时 throw。

参数

无

返回

int — 该类型的值

native_draw_set_label

XuAPI
pub fn native_draw_set_label(text string) int

用途

nativedrawsetlabel。失败时 throw。

参数

text string
文本(string)

返回

int — 该类型的值

register_content_plugin

XuAPI
pub fn register_content_plugin(p ContentPlugin) int

用途

registercontentplugin。

参数

p ContentPlugin
p(ContentPlugin)

返回

int — 该类型的值

(&mut App) run

XuAPI
pub fn (a &mut App) run() int

用途

`&mut App` 上的方法:运行。失败时 throw。

参数

a &mut App
接收者 &mut App(可变借用)

返回

int — 该类型的值

load_asset

XuAPI
pub fn load_asset(path string) string

用途

读asset。失败时 throw。

参数

path string
文件系统路径(string)

返回

string — 结果字符串

push_host_event

XuAPI
pub fn push_host_event(ech chan Event, pl0 string)

用途

压入主机event。

参数

ech chan Event
ech(通道;类型 chan Event)
pl0 string
pl0(string)

drain_host_events

XuAPI
pub fn drain_host_events(ech chan Event)

用途

drain主机events。

参数

ech chan Event
ech(通道;类型 chan Event)

poll_chan

XuAPI
pub fn poll_chan(ech chan Event) Event

用途

pollchan。

参数

ech chan Event
ech(通道;类型 chan Event)

返回

Event — 该类型的值