MCPcopy Create free account

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

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

↓ 2 callersFunctionplus_one
(x: i32)
bilibili/func-demo/src/main.rs:12
↓ 2 callersFunctionpool
创建mysql pool 连接池
part8/points-svc/src/config/mysql.rs:20
↓ 2 callersMethodpool
create redis client pool
part11/qa-project/crates/infras/src/xredis.rs:98
↓ 2 callersMethodpool
create redis client pool
part7/article-svc/src/infras/xredis.rs:99
↓ 2 callersFunctionprivate_function
此函数仅仅在模块内部可见,在模块内部私有,只能在模块内中调用
part2/pub-self-crate-demo/src/main.rs:4
↓ 2 callersFunctionprometheus_init
prometheus metrics初始化配置
part11/qa-project/crates/infras/src/metrics.rs:10
↓ 2 callersFunctionread_username_from_file
()
bilibili/result-demo/src/main.rs:53
↓ 2 callersMethodsetAgreeCount
* 点赞数,添加时默认为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 callersMethodsetIsEnd
* 数据是否到底了 * * 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 callersMethodsetLastId
* 上一次的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 callersMethodsetLimit
* 每页数据 * * 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 callersMethodsetQuestion
* 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 callersMethodsetQuestionId
* 问题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 callersMethodsetReason
* 操作提示信息 * * 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 callersFunctionshow
(name: String)
part2/module-dir-demo/src/auth/post.rs:1
↓ 2 callersMethodupdate
(&self, id: u64, content: &str, updated_by: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:74
↓ 2 callersFunctionvalue_in_cents
(coin: Coin)
bilibili/enum-demo/src/main.rs:48
↓ 2 callersMethodwith_connect_timeout
(mut self, timeout: Duration)
part7/article-svc/src/infras/xredis.rs:64
↓ 2 callersMethodwith_idle_timeout
(mut self, timeout: Duration)
part7/article-svc/src/infras/xredis.rs:59
↓ 2 callersMethodwith_max_lifetime
(mut self, lifetime: Duration)
part7/article-svc/src/infras/xredis.rs:54
↓ 2 callersMethodwith_max_size
(mut self, max: u32)
part11/qa-project/crates/infras/src/xredis.rs:43
↓ 2 callersMethodwith_min_idle
(mut self, min: u32)
part11/qa-project/crates/infras/src/xredis.rs:48
↓ 1 callersFunctionadd
(left: u64, right: u64)
bilibili/mylib/src/lib.rs:1
↓ 1 callersFunctionadd
(left: u64, right: u64)
bilibili/restaurant/src/lib.rs:1
↓ 1 callersFunctionadd_points
增加积分操作
part8/points-svc/src/job.rs:142
↓ 1 callersFunctionadd_to_waitlist
()
bilibili/mylib/src/front_of_house/hosting.rs:1
↓ 1 callersMethodanswer_vote
回答点赞
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:30
↓ 1 callersFunctionapi_router
配置积分服务对应的api路由
part8/points-svc/src/routers/router.rs:7
↓ 1 callersFunctionapi_router
create api router
part11/qa-project/crates/gateway/src/routers/router.rs:16
↓ 1 callersFunctionapi_router
api路由设置
part7/article-svc/src/routers/router.rs:6
↓ 1 callersFunctionblocks
async fn 中使用async块
part10/async-programming/async-move/src/main.rs:5
↓ 1 callersFunctionbuild_user
(email: String, username: String)
bilibili/struct-demo/src/main.rs:8
↓ 1 callersFunctioncalculate_length
(s: &String)
bilibili/ref-borrow-demo/src/main.rs:45
↓ 1 callersFunctioncalculate_length
(s: String)
bilibili/string-demo/src/main.rs:47
↓ 1 callersMethodcall
(&self)
bilibili/enum-demo/src/main.rs:28
↓ 1 callersMethodcall
(&mut self, req: http::Request<B>)
part11/qa-project/crates/pb/src/qa.rs:970
↓ 1 callersMethodcancel_answer_vote
取消回答点赞
part11/qa-project/crates/qa-svc/src/infrastructure/vote/user_vote.rs:98
↓ 1 callersFunctioncapit
(s: &str)
part5/gen-table/src/engine.rs:45
↓ 1 callersFunctionchange
(some_string: &mut String)
bilibili/ref-borrow-demo/src/main.rs:49
↓ 1 callersMethodcheck_answer_exist
(&self, question_id: u64, created_by: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/answer.rs:15
↓ 1 callersMethodcheck_import_duration
(&self, records: &Vec<ColumnEntry>)
part5/gen-table/src/engine.rs:359
↓ 1 callersMethodcheck_table_exist
(&self, pool: &sqlx::MySqlPool, tables: &Vec<&str>)
part5/gen-table/src/engine.rs:146
↓ 1 callersMethodcheck_user_exist
检查用户是否存在
part11/qa-project/crates/qa-svc/src/infrastructure/persistence/user.rs:20
↓ 1 callersFunctionclear_expired_files
(dir: P, expired_days: u64)
part6/mysql-dump-cron/src/mysql.rs:86
↓ 1 callersMethodclient
create pulsar client
part8/points-svc/src/infras/xpulsar.rs:25
↓ 1 callersMethodclient
create redis client
part7/article-svc/src/infras/xredis.rs:70
↓ 1 callersMethodclient
create redis client
part7/redis-demo/src/xredis.rs:69
↓ 1 callersMethodcluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part11/qa-project/crates/infras/src/xredis.rs:83
↓ 1 callersMethodcluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part7/article-svc/src/infras/xredis.rs:84
↓ 1 callersMethodcluster_client
create redis cluster client 这种适合集群模式的redis节点连接redis
part7/redis-demo/src/xredis.rs:83
↓ 1 callersMethodcluster_pool
redis cluster pool
part11/qa-project/crates/infras/src/xredis.rs:105
↓ 1 callersFunctioncompress_image
图片压缩 将输入的图片按照一定的百分比进行压缩
part5/imgtool/src/utils.rs:22
↓ 1 callersFunctionconsumer_message
消费积分增加/扣减在pulsar topic中的消息
part8/points-svc/src/job.rs:61
↓ 1 callersFunctionconsumer_message
消费消息 函数返回Result<(), KafkaError>
part8/kafka/kafka-demo/src/consumer.rs:33
↓ 1 callersMethodcontent
(&self)
part8/points-svc/src/infras/config.rs:42
↓ 1 callersMethodcontent
(&self)
part7/article-svc/src/infras/config.rs:41
↓ 1 callersFunctioncook_order
()
bilibili/backyard/src/main.rs:54
↓ 1 callersFunctioncrate_visible_fn
此函数仅对当前包(crate)以及同包中的其他模块内可见
part2/pub-self-crate-demo/src/main.rs:9
↓ 1 callersMethodcreate_mod_file
(&mut self)
part5/gen-table/src/engine.rs:169
↓ 1 callersMethodcreate_out_dir
create out_dir
part5/gen-table/src/engine.rs:162
↓ 1 callersFunctioncrop_image
图片裁剪
part5/imgtool/src/utils.rs:53
↓ 1 callersMethoddel
(&self, key: &str)
part11/qa-project/crates/qa-svc/src/infrastructure/cache/user_session.rs:35
↓ 1 callersFunctiondeliver_order
()
bilibili/backyard/src/main.rs:6
↓ 1 callersFunctiondescribe_state_quarter
(coin: Coin)
bilibili/enum-demo/src/main.rs:70
↓ 1 callersFunctioneat
()
part2/module-demo/src/main.rs:7
↓ 1 callersFunctioneat
通过pub关键字公开eat函数
part2/module-file-demo/src/user.rs:7
↓ 1 callersFunctioneat
通过pub关键字公开eat函数
part2/pub-use-export/src/main.rs:10
↓ 1 callersFunctioneat_at_restaurant
()
bilibili/mylib/src/lib.rs:7
↓ 1 callersFunctioneat_at_restaurant
()
bilibili/backyard/src/main.rs:10
↓ 1 callersFunctioneat_at_restaurant2
()
bilibili/backyard/src/main.rs:22
↓ 1 callersFunctionedit
(name: String)
part2/module-dir-demo/src/feed/feed.rs:4
↓ 1 callersMethodexisted_in
(&self, year: u16)
bilibili/enum-demo/src/main.rs:61
↓ 1 callersFunctionfile_qa_proto_init
()
part11/qa-project/clients/go/pb/qa.pb.go:2038
↓ 1 callersFunctionfirst_word
(s: &String)
bilibili/slice-demo/src/main.rs:41
↓ 1 callersFunctionfix_incorrect_order
()
bilibili/backyard/src/main.rs:49
↓ 1 callersFunctionfoo
()
part2/pub-self-crate-demo/src/main.rs:32
↓ 1 callersMethodgen_code
gen rust model entity for tables
part5/gen-table/src/engine.rs:108
↓ 1 callersMethodgen_table_code
( &self, pool: &sqlx::MySqlPool, out_dir: &Path, mod_file: &mut fs::File,
part5/gen-table/src/engine.rs:257
↓ 1 callersMethodgetAction
* 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 callersMethodgetCurrentPage
* 当前第几页 * * 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 callersMethodgetHasAgreed
* 当前用户是否点赞 * * Generated from protobuf field <code>bool has_agreed = 6;</code> * @return bool */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerEntity.php:217
↓ 1 callersMethodgetPage
* 当前页数 * * Generated from protobuf field <code>uint64 page = 2;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListRequest.php:97
↓ 1 callersMethodgetPageSize
* 每页显示个数 * * 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 callersMethodgetReadCount
* 问题阅读数 * * 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 callersMethodgetReplyCount
* 回答数量 * * 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 callersMethodgetRequestId
* 请求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 callersMethodgetTotal
* Generated from protobuf field <code>uint64 total = 2;</code> * @return int|string */
part11/qa-project/clients/php/App/Grpc/Qa/AnswerListReply.php:98
↓ 1 callersMethodgetTotalPage
* 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 callersMethodgetUpdatedBy
* 更新者 * * Generated from protobuf field <code>string updated_by = 4;</code> * @return string */
part11/qa-project/clients/php/App/Grpc/Qa/UpdateQuestionRequest.php:149
↓ 1 callersFunctionget_client_ip
(req: &Request<()>)
part11/qa-project/crates/qa-svc/src/middleware/log.rs:19
↓ 1 callersMethodget_no_null_fields
(&self)
part5/gen-table/src/engine.rs:239
↓ 1 callersMethodget_query_fields
(&self)
part5/gen-table/src/engine.rs:174
↓ 1 callersMethodget_tab_fn_tpl
(&self, table: &str)
part5/gen-table/src/engine.rs:370
↓ 1 callersFunctionget_ua
(req: &Request<()>)
part11/qa-project/crates/qa-svc/src/middleware/log.rs:26
↓ 1 callersFunctiongraceful_shutdown
graceful shutdown
part4/short-url/src/handlers.rs:119
↓ 1 callersFunctiongraceful_shutdown
接收signal信号量并平滑退出
part4/hello-axum/src/main.rs:70
↓ 1 callersFunctiongraceful_shutdown
使用ctrlc包实现服务平滑退出
part4/web-server/src/server.rs:103
↓ 1 callersFunctiongraceful_shutdown
平滑退出函数 当接收信号量后,服务将平滑退出
part8/points-svc/src/main.rs:64
↓ 1 callersFunctiongraceful_shutdown
平滑退出信号量处理
part8/points-svc/src/job.rs:264
↓ 1 callersFunctiongraceful_shutdown
graceful shutdown
part7/article-svc/src/main.rs:50
← previousnext →101–200 of 1,131, ranked by callers