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

Consider modifying parameters for this method : channel::request_pty_size() #304

Closed
JiKai126 opened this issue Sep 22, 2023 · 2 comments
Closed

Comments

@JiKai126
Copy link

This is the current version:

pub fn request_pty_size(
        &mut self,
        width: u32,
        height: u32,
        width_px: Option<u32>,
        height_px: Option<u32>,
    ) -> Result<(), Error> 

I would like to modify this code to look like the following:

pub fn request_pty_size<W>(
        &mut W,
        width: u32,
        height: u32,
        width_px: Option<u32>,
        height_px: Option<u32>,
    )  
where
    W: Write

Because I'm using fn split(self) -> (ReadHalf<Self>, WriteHalf<Self>),I can not to use request_pty_size

@yodaldevoid
Copy link
Collaborator

I'm not sure how your suggested code would work. Beyond that, I cannot find a split method or function in ssh2 or ReadHalf or WriteHalf structures. Perhaps you are mixing up code from this library and another?

@JiKai126
Copy link
Author

I'm sorry, this issue shouldn't be related to this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants