MCPcopy Create free account

hub / github.com/daheige/rust-in-action / functions

Functions1,131 in github.com/daheige/rust-in-action

↓ 1 callersFunctiongreet
实现greet函数,该函数的参数是一个char*类型
part9/cc-app-info/c_code/foo.c:26
↓ 1 callersFunctiongreet
(name: &str)
part10/async-programming/futures-demo/src/main.rs:8
↓ 1 callersMethodhandler
(&self, target_type: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/read_count/entity_read_count.rs:104
↓ 1 callersMethodhandler_answer_agree
( &self, target_id: u64, created_by: &str, action: &str, )
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:155
↓ 1 callersFunctionhandler_connection
处理客户端请求
part4/web-server/src/main.rs:21
↓ 1 callersFunctionhandler_connection
处理客户端请求
part4/web-server/src/multi_server.rs:34
↓ 1 callersFunctionhandler_connection
处理客户端请求
part4/web-server/src/server.rs:45
↓ 1 callersFunctionhandler_read_count
获取当前时间并输出到终端
part7/article-svc/src/job.rs:65
↓ 1 callersMethodhas_voted
当前用户是否对某个实体对象已点赞
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:78
↓ 1 callersFunctionhello
这里使用super关键字,来调用上一层的say_hello函数
part2/super-self-demo/src/main.rs:18
↓ 1 callersFunctionhello_cat
()
bilibili/async-in-rust/futures-demo/src/main.rs:12
↓ 1 callersFunctionhello_cat
()
part10/async-programming/async-demo/src/main.rs:1
↓ 1 callersFunctionhello_cat
()
part10/async-programming/async-await-demo/src/main.rs:3
↓ 1 callersFunctionhello_world
()
part10/async-programming/futures-demo/src/main.rs:4
↓ 1 callersFunctionincr_read_count
(pool: Pool<redis::Client>, id: i64)
part7/article-svc/src/handlers/article.rs:65
↓ 1 callersFunctionindirect_call
()
part2/super-self-demo/src/main.rs:26
↓ 1 callersMethodinit_pool
init mysql pool
part5/gen-table/src/engine.rs:227
↓ 1 callersMethodis_batch_voted
( &self, target_ids: &Vec<u64>, target_type: &str, username: &str, )
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:196
↓ 1 callersFunctionlargest
(list: &[T])
bilibili/generic-demo/src/main.rs:25
↓ 1 callersFunctionlargest_char
(list: &[char])
bilibili/generic-demo/src/main.rs:13
↓ 1 callersFunctionlargest_i32
(list: &[i32])
bilibili/generic-demo/src/main.rs:1
↓ 1 callersMethodlatest_lists
最新问题列表
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/question.rs:97
↓ 1 callersMethodlists
( &self, question_id: u64, page: u64, limit: u64, order_by: &str,
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:110
↓ 1 callersMethodload
(&mut self)
part7/article-svc/src/infras/config.rs:29
↓ 1 callersFunctionload_config
从JSON配置文件中加载配置内容到AppConfig结构体对象中
part3/json-config-demo/src/config.rs:51
↓ 1 callersFunctionlog_bak_path
日志备份文件的路径获取逻辑
part6/logrote-service/src/main.rs:29
↓ 1 callersFunctionlongest
(x: &'a str, y: &'a str)
bilibili/lifetimes-demo/src/main.rs:3
↓ 1 callersFunctionlongest_with_an_announcement
(x: &'a str, y: &'a str, ann: T)
bilibili/lifetimes-demo/src/main.rs:18
↓ 1 callersFunctionmakes_copy
(some_integer: i32)
bilibili/string-demo/src/main.rs:59
↓ 1 callersFunctionmock_send_email
模拟邮件发送
part6/mysql-dump-cron/src/mysql.rs:81
↓ 1 callersFunctionmock_user_request
模拟用户请求
part6/logrote-service/src/systime-output.rs:22
↓ 1 callersFunctionmove_block
async move块
part10/async-programming/async-move/src/main.rs:22
↓ 1 callersFunctionnew_answer_repo
(mysql_pool: sqlx::MySqlPool)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:9
↓ 1 callersFunctionnew_qa_service
创建QaService实例
part11/qa-project/crates/qa-svc/src/application/qa.rs:44
↓ 1 callersFunctionnew_question_repo
(mysql_pool: sqlx::MySqlPool)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/question.rs:11
↓ 1 callersFunctionnew_user_cache
(redis_pool: Pool<redis::Client>)
part11/qa-project/crates/qa-svc/src/infrastructure/cache/user_session.rs:10
↓ 1 callersFunctionnew_user_repo
(mysql_pool: sqlx::MySqlPool)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/user.rs:12
↓ 1 callersFunctionnotify2
(item: &T)
bilibili/trait-demo/src/main.rs:58
↓ 1 callersFunctionnotify3
(item: &T)
bilibili/trait-demo/src/main.rs:62
↓ 1 callersFunctionnotify4
(item: &T)
bilibili/trait-demo/src/main.rs:67
↓ 1 callersFunctionpoints_handler
积分添加/扣减业务逻辑
part8/points-svc/src/job.rs:128
↓ 1 callersMethodpool
初始化mysql连接池pool
part8/points-svc/src/infras/xmysql.rs:61
↓ 1 callersMethodpool
create redis client pool
part7/redis-demo/src/xredis.rs:98
↓ 1 callersFunctionprint_app_info
实现函数print_app_info
part9/cc-app-info/c_code/foo.c:12
↓ 1 callersFunctionprint_current_time
获取当前时间并输出到终端
part6/cron-demo/src/main.rs:24
↓ 1 callersFunctionprompt
获取用户输入的字符串
part9/cc-app-info/src/main.rs:17
↓ 1 callersFunctionpublic_function
对my_mod模块可见,可以被外部以及当前模块中调用
part2/pub-self-crate-demo/src/main.rs:14
↓ 1 callersMethodpublish
发送用户点赞消息
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:236
↓ 1 callersFunctionpublish_message
发送积分操作的消息
part8/points-svc/src/handlers/index.rs:161
↓ 1 callersFunctionpublish_message
发送消息 函数返回Result<(), KafkaError>
part8/kafka/kafka-demo/src/main.rs:43
↓ 1 callersFunctionquery_points
根据openid和limit,page查询用户的积分
part8/points-svc/src/handlers/index.rs:211
↓ 1 callersFunctionquestion_detail
( State(state): State<Arc<AppState>>, JsonOrForm(payload): JsonOrForm<QuestionRequest>, )
part11/qa-project/crates/gateway/src/handlers/qa.rs:223
↓ 1 callersMethodquestion_detail
查看问题详情
part11/qa-project/crates/pb/src/qa.rs:587
↓ 1 callersFunctionread
(path: &str)
part10/async-programming/async-readfile/src/main.rs:11
↓ 1 callersFunctionread_file
从终端中获取文件名,并读取文件内容
part2/readfile-custom/src/main.rs:19
↓ 1 callersFunctionread_file
读取文件内容
part3/json-config-demo/src/config.rs:6
↓ 1 callersFunctionread_file
异步读取文件内容
part10/async-programming/async-readfile/src/main.rs:6
↓ 1 callersFunctionread_file
读取文件的内容,函数接受一个实现了`AsRef<Path>`trait的参数path。 `AsRef<Path>`是一个trait,它定义了一个方法as_ref,该方法返回一个Path引用, 它可以被实现为各种类型,包括&Path本身,以及其他可以转换为Path引用的类型,比如String、&str
part1/readfile/src/main.rs:15
↓ 1 callersFunctionrotate_image
图片旋转
part5/imgtool/src/utils.rs:102
↓ 1 callersFunctionrote_file
(file_path: &Path)
part6/logrote-service/src/main.rs:48
↓ 1 callersFunctionsay
在async fn中调用Future使用.await表达式
bilibili/async-in-rust/futures-demo/src/main.rs:24
↓ 1 callersFunctionsay
()
part10/async-programming/async-demo/src/main.rs:5
↓ 1 callersFunctionsay
在async fn中调用Future使用.await表达式
part10/async-programming/async-await-demo/src/main.rs:15
↓ 1 callersFunctionsay_hello
(name: String)
part2/module-demo/src/main.rs:4
↓ 1 callersFunctionsay_hello
通过pub关键字公开say_hello函数
part2/module-file-demo/src/user.rs:2
↓ 1 callersFunctionsay_hello
通过pub关键字公开say_hello函数
part2/pub-use-export/src/main.rs:5
↓ 1 callersFunctionsay_hello
()
part2/super-self-demo/src/main.rs:12
↓ 1 callersFunctionsay_hello
(name: &str)
bilibili/async-in-rust/tokio-demo/src/main.rs:2
↓ 1 callersFunctionsay_hello
(name: &str)
part10/async-programming/tokio-demo/src/main.rs:2
↓ 1 callersMethodsetAction
* up表示点赞,cancel表示取消点赞 * * Generated from protobuf field <code>string action = 3;</code> * @param string $var * @return $this
part11/qa-project/clients/php/App/Grpc/Qa/AnswerAgreeRequest.php:127
↓ 1 callersMethodsetCurrentPage
* 当前第几页 * * Generated from protobuf field <code>uint64 current_page = 5;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:182
↓ 1 callersMethodsetHasAgreed
* 当前用户是否点赞 * * Generated from protobuf field <code>bool has_agreed = 6;</code> * @param bool $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerEntity.php:229
↓ 1 callersMethodsetPage
* 当前页数 * * Generated from protobuf field <code>uint64 page = 2;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListRequest.php:109
↓ 1 callersMethodsetPageSize
* 每页显示个数 * * Generated from protobuf field <code>uint64 page_size = 4;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:156
↓ 1 callersMethodsetReadCount
* 问题阅读数 * * Generated from protobuf field <code>uint64 read_count = 5;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/QuestionEntity.php:203
↓ 1 callersMethodsetReplyCount
* 回答数量 * * Generated from protobuf field <code>uint64 reply_count = 6;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/QuestionEntity.php:229
↓ 1 callersMethodsetRequestId
* 请求id * * Generated from protobuf field <code>string request_id = 2;</code> * @param string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/VerifyTokenRequest.php:93
↓ 1 callersMethodsetTotal
* Generated from protobuf field <code>uint64 total = 2;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:108
↓ 1 callersMethodsetTotalPage
* Generated from protobuf field <code>uint64 total_page = 3;</code> * @param int|string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:130
↓ 1 callersMethodsetUpdatedBy
* 更新者 * * Generated from protobuf field <code>string updated_by = 4;</code> * @param string $var * @return $this */
part11/qa-project/clients/php/App/Grpc/Qa/UpdateQuestionRequest.php:161
↓ 1 callersFunctionshow
()
part2/module-demo/src/main.rs:13
↓ 1 callersFunctionshow
通过pub关键字公开show函数
part2/pub-use-export/src/main.rs:17
↓ 1 callersFunctionsub_points
积分扣减操作
part8/points-svc/src/job.rs:189
↓ 1 callersFunctionsummary
()
part2/module-dir-demo/src/feed/mod.rs:8
↓ 1 callersFunctionsuper_mod_visible_fn
此函数仅仅在outer_mod中可见
part2/pub-self-crate-demo/src/main.rs:25
↓ 1 callersFunctiontake_order
()
bilibili/restaurant/src/lib.rs:17
↓ 1 callersFunctiontakes_ownership
(some_string: String)
bilibili/string-demo/src/main.rs:53
↓ 1 callersMethodtestEmbeddedByValue
()
part11/qa-project/clients/go/pb/qa_grpc.pb.go:327
↓ 1 callersFunctionupdate_read_count
将redis hash中文章增量计数器对应的数量,更新到数据表articles中,并对应减少对应的数量
part7/article-svc/src/job.rs:129
↓ 1 callersMethodupdate_read_count
将redis hash中实体增量计数器对应的数量,更新到对应的实体数据表中,并对应减少对应的数量
part11/qa-project/crates/qa-svc/src/infrastructure/read_count/entity_read_count.rs:39
↓ 1 callersFunctionuser_login
( State(state): State<Arc<AppState>>, JsonOrForm(payload): JsonOrForm<LoginRequest>, )
part11/qa-project/crates/gateway/src/handlers/qa.rs:109
↓ 1 callersFunctionuser_login
php qa.php daheige 123456
part11/qa-project/clients/php/qa.php:7
↓ 1 callersMethoduser_login
用户登录
part11/qa-project/crates/pb/src/qa.rs:428
↓ 1 callersFunctionuser_logout
( State(state): State<Arc<AppState>>, JsonOrForm(payload): JsonOrForm<LogoutRequest>, )
part11/qa-project/crates/gateway/src/handlers/qa.rs:156
↓ 1 callersMethoduser_logout
用户退出
part11/qa-project/crates/pb/src/qa.rs:447
↓ 1 callersFunctionuser_register
( State(state): State<Arc<AppState>>, JsonOrForm(payload): JsonOrForm<LoginRequest>, )
part11/qa-project/crates/gateway/src/handlers/qa.rs:55
↓ 1 callersMethoduser_register
用户注册
part11/qa-project/crates/pb/src/qa.rs:469
↓ 1 callersFunctionwalk
()
part2/module-file-demo/src/user.rs:11
↓ 1 callersFunctionwater
()
part2/module-file-demo/src/user.rs:15
↓ 1 callersMethodwith_cluster_nodes
(mut self, nodes: Vec<&'a str>)
part11/qa-project/crates/infras/src/xredis.rs:38
← previousnext →201–300 of 1,131, ranked by callers