Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daheige/rust-in-action
/ functions
Functions
1,131 in github.com/daheige/rust-in-action
⨍
Functions
1,131
◇
Types & classes
268
↓ 2 callers
Function
plus_one
(x: i32)
bilibili/func-demo/src/main.rs:12
↓ 2 callers
Function
pool
创建mysql pool 连接池
part8/points-svc/src/config/mysql.rs:20
↓ 2 callers
Method
pool
create redis client pool
part11/qa-project/crates/infras/src/xredis.rs:98
↓ 2 callers
Method
pool
create redis client pool
part7/article-svc/src/infras/xredis.rs:99
↓ 2 callers
Function
private_function
此函数仅仅在模块内部可见,在模块内部私有,只能在模块内中调用
part2/pub-self-crate-demo/src/main.rs:4
↓ 2 callers
Function
prometheus_init
prometheus metrics初始化配置
part11/qa-project/crates/infras/src/metrics.rs:10
↓ 2 callers
Function
read_username_from_file
()
bilibili/result-demo/src/main.rs:53
↓ 2 callers
Method
setAgreeCount
* 点赞数,添加时默认为0 * * Generated from protobuf field <code>uint64 agree_count = 5;</code> * @param int|string $var * @return $this
part11/qa-project/clients/php/App/Grpc/Qa/AnswerEntity.php:203
↓ 2 callers
Method
setIsEnd
* 数据是否到底了 * * Generated from protobuf field <code>bool is_end = 6;</code> * @param bool $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:208
↓ 2 callers
Method
setLastId
* 上一次的question_id * * Generated from protobuf field <code>uint64 last_id = 2;</code> * @param int|string $var * @return $this
part11/qa-project/clients/php/App/Grpc/Qa/LatestQuestionsReply.php:94
↓ 2 callers
Method
setLimit
* 每页数据 * * Generated from protobuf field <code>uint64 limit = 3;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListRequest.php:135
↓ 2 callers
Method
setQuestion
* Generated from protobuf field <code>.qa.QuestionEntity question = 1;</code> * @param \App\Grpc\Qa\QuestionEntity $var * @return $this
part11/qa-project/clients/php/App/Grpc/Qa/QuestionDetailReply.php:62
↓ 2 callers
Method
setQuestionId
* 问题id * * Generated from protobuf field <code>uint64 question_id = 2;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerEntity.php:125
↓ 2 callers
Method
setReason
* 操作提示信息 * * Generated from protobuf field <code>string reason = 2;</code> * @param string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerAgreeReply.php:105
↓ 2 callers
Function
show
(name: String)
part2/module-dir-demo/src/auth/post.rs:1
↓ 2 callers
Method
update
(&self, id: u64, content: &str, updated_by: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:74
↓ 2 callers
Function
value_in_cents
(coin: Coin)
bilibili/enum-demo/src/main.rs:48
↓ 2 callers
Method
with_connect_timeout
(mut self, timeout: Duration)
part7/article-svc/src/infras/xredis.rs:64
↓ 2 callers
Method
with_idle_timeout
(mut self, timeout: Duration)
part7/article-svc/src/infras/xredis.rs:59
↓ 2 callers
Method
with_max_lifetime
(mut self, lifetime: Duration)
part7/article-svc/src/infras/xredis.rs:54
↓ 2 callers
Method
with_max_size
(mut self, max: u32)
part11/qa-project/crates/infras/src/xredis.rs:43
↓ 2 callers
Method
with_min_idle
(mut self, min: u32)
part11/qa-project/crates/infras/src/xredis.rs:48
↓ 1 callers
Function
add
(left: u64, right: u64)
bilibili/mylib/src/lib.rs:1
↓ 1 callers
Function
add
(left: u64, right: u64)
bilibili/restaurant/src/lib.rs:1
↓ 1 callers
Function
add_points
增加积分操作
part8/points-svc/src/job.rs:142
↓ 1 callers
Function
add_to_waitlist
()
bilibili/mylib/src/front_of_house/hosting.rs:1
↓ 1 callers
Method
answer_vote
回答点赞
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:30
↓ 1 callers
Function
api_router
配置积分服务对应的api路由
part8/points-svc/src/routers/router.rs:7
↓ 1 callers
Function
api_router
create api router
part11/qa-project/crates/gateway/src/routers/router.rs:16
↓ 1 callers
Function
api_router
api路由设置
part7/article-svc/src/routers/router.rs:6
↓ 1 callers
Function
blocks
async fn 中使用async块
part10/async-programming/async-move/src/main.rs:5
↓ 1 callers
Function
build_user
(email: String, username: String)
bilibili/struct-demo/src/main.rs:8
↓ 1 callers
Function
calculate_length
(s: &String)
bilibili/ref-borrow-demo/src/main.rs:45
↓ 1 callers
Function
calculate_length
(s: String)
bilibili/string-demo/src/main.rs:47
↓ 1 callers
Method
call
(&self)
bilibili/enum-demo/src/main.rs:28
↓ 1 callers
Method
call
(&mut self, req: http::Request<B>)
part11/qa-project/crates/pb/src/qa.rs:970
↓ 1 callers
Method
cancel_answer_vote
取消回答点赞
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:98
↓ 1 callers
Function
capit
(s: &str)
part5/gen-table/src/engine.rs:45
↓ 1 callers
Function
change
(some_string: &mut String)
bilibili/ref-borrow-demo/src/main.rs:49
↓ 1 callers
Method
check_answer_exist
(&self, question_id: u64, created_by: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:15
↓ 1 callers
Method
check_import_duration
(&self, records: &Vec<ColumnEntry>)
part5/gen-table/src/engine.rs:359
↓ 1 callers
Method
check_table_exist
(&self, pool: &sqlx::MySqlPool, tables: &Vec<&str>)
part5/gen-table/src/engine.rs:146
↓ 1 callers
Method
check_user_exist
检查用户是否存在
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/user.rs:20
↓ 1 callers
Function
clear_expired_files
(dir: P, expired_days: u64)
part6/mysql-dump-cron/src/mysql.rs:86
↓ 1 callers
Method
client
create pulsar client
part8/points-svc/src/infras/xpulsar.rs:25
↓ 1 callers
Method
client
create redis client
part7/article-svc/src/infras/xredis.rs:70
↓ 1 callers
Method
client
create redis client
part7/redis-demo/src/xredis.rs:69
↓ 1 callers
Method
cluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part11/qa-project/crates/infras/src/xredis.rs:83
↓ 1 callers
Method
cluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part7/article-svc/src/infras/xredis.rs:84
↓ 1 callers
Method
cluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part7/redis-demo/src/xredis.rs:83
↓ 1 callers
Method
cluster_pool
redis cluster pool
part11/qa-project/crates/infras/src/xredis.rs:105
↓ 1 callers
Function
compress_image
图片压缩 将输入的图片按照一定的百分比进行压缩
part5/imgtool/src/utils.rs:22
↓ 1 callers
Function
consumer_message
消费积分增加/扣减在pulsar topic中的消息
part8/points-svc/src/job.rs:61
↓ 1 callers
Function
consumer_message
消费消息 函数返回Result<(), KafkaError>
part8/kafka/kafka-demo/src/consumer.rs:33
↓ 1 callers
Method
content
(&self)
part8/points-svc/src/infras/config.rs:42
↓ 1 callers
Method
content
(&self)
part7/article-svc/src/infras/config.rs:41
↓ 1 callers
Function
cook_order
()
bilibili/backyard/src/main.rs:54
↓ 1 callers
Function
crate_visible_fn
此函数仅对当前包(crate)以及同包中的其他模块内可见
part2/pub-self-crate-demo/src/main.rs:9
↓ 1 callers
Method
create_mod_file
(&mut self)
part5/gen-table/src/engine.rs:169
↓ 1 callers
Method
create_out_dir
create out_dir
part5/gen-table/src/engine.rs:162
↓ 1 callers
Function
crop_image
图片裁剪
part5/imgtool/src/utils.rs:53
↓ 1 callers
Method
del
(&self, key: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/cache/user_session.rs:35
↓ 1 callers
Function
deliver_order
()
bilibili/backyard/src/main.rs:6
↓ 1 callers
Function
describe_state_quarter
(coin: Coin)
bilibili/enum-demo/src/main.rs:70
↓ 1 callers
Function
eat
()
part2/module-demo/src/main.rs:7
↓ 1 callers
Function
eat
通过pub关键字公开eat函数
part2/module-file-demo/src/user.rs:7
↓ 1 callers
Function
eat
通过pub关键字公开eat函数
part2/pub-use-export/src/main.rs:10
↓ 1 callers
Function
eat_at_restaurant
()
bilibili/mylib/src/lib.rs:7
↓ 1 callers
Function
eat_at_restaurant
()
bilibili/backyard/src/main.rs:10
↓ 1 callers
Function
eat_at_restaurant2
()
bilibili/backyard/src/main.rs:22
↓ 1 callers
Function
edit
(name: String)
part2/module-dir-demo/src/feed/feed.rs:4
↓ 1 callers
Method
existed_in
(&self, year: u16)
bilibili/enum-demo/src/main.rs:61
↓ 1 callers
Function
file_qa_proto_init
()
part11/qa-project/clients/go/pb/qa.pb.go:2038
↓ 1 callers
Function
first_word
(s: &String)
bilibili/slice-demo/src/main.rs:41
↓ 1 callers
Function
fix_incorrect_order
()
bilibili/backyard/src/main.rs:49
↓ 1 callers
Function
foo
()
part2/pub-self-crate-demo/src/main.rs:32
↓ 1 callers
Method
gen_code
gen rust model entity for tables
part5/gen-table/src/engine.rs:108
↓ 1 callers
Method
gen_table_code
( &self, pool: &sqlx::MySqlPool, out_dir: &Path, mod_file: &mut fs::File,
part5/gen-table/src/engine.rs:257
↓ 1 callers
Method
getAction
* up表示点赞,cancel表示取消点赞 * * Generated from protobuf field <code>string action = 3;</code> * @return string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerAgreeRequest.php:115
↓ 1 callers
Method
getCurrentPage
* 当前第几页 * * Generated from protobuf field <code>uint64 current_page = 5;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:170
↓ 1 callers
Method
getHasAgreed
* 当前用户是否点赞 * * Generated from protobuf field <code>bool has_agreed = 6;</code> * @return bool */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerEntity.php:217
↓ 1 callers
Method
getPage
* 当前页数 * * Generated from protobuf field <code>uint64 page = 2;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListRequest.php:97
↓ 1 callers
Method
getPageSize
* 每页显示个数 * * Generated from protobuf field <code>uint64 page_size = 4;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:144
↓ 1 callers
Method
getReadCount
* 问题阅读数 * * Generated from protobuf field <code>uint64 read_count = 5;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/QuestionEntity.php:191
↓ 1 callers
Method
getReplyCount
* 回答数量 * * Generated from protobuf field <code>uint64 reply_count = 6;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/QuestionEntity.php:217
↓ 1 callers
Method
getRequestId
* 请求id * * Generated from protobuf field <code>string request_id = 2;</code> * @return string */
part11/qa-project/clients/php/App/Grpc/Qa/VerifyTokenRequest.php:81
↓ 1 callers
Method
getTotal
* Generated from protobuf field <code>uint64 total = 2;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:98
↓ 1 callers
Method
getTotalPage
* Generated from protobuf field <code>uint64 total_page = 3;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:120
↓ 1 callers
Method
getUpdatedBy
* 更新者 * * Generated from protobuf field <code>string updated_by = 4;</code> * @return string */
part11/qa-project/clients/php/App/Grpc/Qa/UpdateQuestionRequest.php:149
↓ 1 callers
Function
get_client_ip
(req: &Request<()>)
part11/qa-project/crates/qa-svc/src/middleware/log.rs:19
↓ 1 callers
Method
get_no_null_fields
(&self)
part5/gen-table/src/engine.rs:239
↓ 1 callers
Method
get_query_fields
(&self)
part5/gen-table/src/engine.rs:174
↓ 1 callers
Method
get_tab_fn_tpl
(&self, table: &str)
part5/gen-table/src/engine.rs:370
↓ 1 callers
Function
get_ua
(req: &Request<()>)
part11/qa-project/crates/qa-svc/src/middleware/log.rs:26
↓ 1 callers
Function
graceful_shutdown
graceful shutdown
part4/short-url/src/handlers.rs:119
↓ 1 callers
Function
graceful_shutdown
接收signal信号量并平滑退出
part4/hello-axum/src/main.rs:70
↓ 1 callers
Function
graceful_shutdown
使用ctrlc包实现服务平滑退出
part4/web-server/src/server.rs:103
↓ 1 callers
Function
graceful_shutdown
平滑退出函数 当接收信号量后,服务将平滑退出
part8/points-svc/src/main.rs:64
↓ 1 callers
Function
graceful_shutdown
平滑退出信号量处理
part8/points-svc/src/job.rs:264
↓ 1 callers
Function
graceful_shutdown
graceful shutdown
part7/article-svc/src/main.rs:50
← previous
next →
101–200 of 1,131, ranked by callers