Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#20 telnet trait #24

Merged
merged 7 commits into from
Sep 19, 2024
Merged

Feat/#20 telnet trait #24

merged 7 commits into from
Sep 19, 2024

Conversation

comavius
Copy link
Member

関連Issue

概要

telnet通信のtraitです

変更内容

  • trait telnetを実装

補足

@comavius comavius added the enhancement New feature or request label Sep 19, 2024
@comavius comavius requested a review from kenken714 September 19, 2024 11:06
@comavius comavius self-assigned this Sep 19, 2024

pub trait Telnet {
fn new<Addr: ToSocketAddrs>(addr: Addr) -> Self;
fn exec(&mut self, cmd: &str) -> Result<impl Future<Output = Result<String>>>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fn exec(&mut self, cmd: &str) -> Result<impl Future<Output = Result<String>>>;
fn exec(&mut self, cmd: &str) -> impl Future<Output = Result<String>>;

外側のResultはいらなそう

@comavius comavius requested a review from kenken714 September 19, 2024 11:24
Copy link
Collaborator

@kenken714 kenken714 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@comavius comavius merged commit 69e2bf9 into develop Sep 19, 2024
2 checks passed
@kenken714 kenken714 deleted the feat/#20-telnet-trait branch September 19, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

telnet通信のtraitを実装
2 participants