Struct sshpuffin::libssh::ssh::SshSessionRef
source · pub struct SshSessionRef(Opaque);
Expand description
A borrowed reference to a SshSession
.
Tuple Fields§
§0: Opaque
Implementations§
source§impl SshSessionRef
impl SshSessionRef
sourcepub fn set_blocking(&mut self, blocking: bool)
pub fn set_blocking(&mut self, blocking: bool)
ssh_set_blocking
sourcepub fn session_state(&self) -> ssh_session_state_e
pub fn session_state(&self) -> ssh_session_state_e
TODO
pub fn auth_state(&self) -> ssh_auth_state_e
sourcepub fn set_options_str(
&mut self,
typ: ssh_options_e,
value: &str,
) -> Result<(), String>
pub fn set_options_str( &mut self, typ: ssh_options_e, value: &str, ) -> Result<(), String>
ssh_options_set
sourcepub fn set_options_int(
&mut self,
typ: ssh_options_e,
value: i32,
) -> Result<(), String>
pub fn set_options_int( &mut self, typ: ssh_options_e, value: i32, ) -> Result<(), String>
ssh_options_set
sourcepub fn blocking_flush(
&mut self,
duration: Duration,
) -> Result<SshResult, String>
pub fn blocking_flush( &mut self, duration: Duration, ) -> Result<SshResult, String>
ssh_blocking_flush
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
ssh_is_connected
sourcepub fn handle_key_exchange(&mut self) -> Result<SshResult, String>
pub fn handle_key_exchange(&mut self) -> Result<SshResult, String>
ssh_handle_key_exchange
sourcepub fn userauth_password(
&mut self,
username: Option<&str>,
password: &str,
) -> Result<SshAuthResult, String>
pub fn userauth_password( &mut self, username: Option<&str>, password: &str, ) -> Result<SshAuthResult, String>
ssh_userauth_password
sourcepub fn get_message(&mut self) -> Option<SshMessage>
pub fn get_message(&mut self) -> Option<SshMessage>
ssh_message_get
sourcepub fn disconnect(&mut self)
pub fn disconnect(&mut self)
ssh_disconnect
Trait Implementations§
source§impl AsMut<SshSessionRef> for SshSession
impl AsMut<SshSessionRef> for SshSession
source§fn as_mut(&mut self) -> &mut SshSessionRef
fn as_mut(&mut self) -> &mut SshSessionRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<SshSessionRef> for SshSession
impl AsRef<SshSessionRef> for SshSession
source§fn as_ref(&self) -> &SshSessionRef
fn as_ref(&self) -> &SshSessionRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<SshSessionRef> for SshSession
impl Borrow<SshSessionRef> for SshSession
source§fn borrow(&self) -> &SshSessionRef
fn borrow(&self) -> &SshSessionRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<SshSessionRef> for SshSession
impl BorrowMut<SshSessionRef> for SshSession
source§fn borrow_mut(&mut self) -> &mut SshSessionRef
fn borrow_mut(&mut self) -> &mut SshSessionRef
Mutably borrows from an owned value. Read more
source§impl Fallible for SshSessionRef
impl Fallible for SshSessionRef
source§impl ForeignTypeRef for SshSessionRef
impl ForeignTypeRef for SshSessionRef
impl Send for SshSessionRef
impl Sync for SshSessionRef
Auto Trait Implementations§
impl Freeze for SshSessionRef
impl !RefUnwindSafe for SshSessionRef
impl Unpin for SshSessionRef
impl UnwindSafe for SshSessionRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.