Struct sshpuffin::libssh::ssh::SshSession
source · #[repr(transparent)]pub struct SshSession(NonNull<ssh_session_struct>);
Tuple Fields§
§0: NonNull<ssh_session_struct>
Implementations§
Methods from Deref<Target = 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 Deref for SshSession
impl Deref for SshSession
source§type Target = SshSessionRef
type Target = SshSessionRef
The resulting type after dereferencing.
source§fn deref(&self) -> &SshSessionRef
fn deref(&self) -> &SshSessionRef
Dereferences the value.
source§impl DerefMut for SshSession
impl DerefMut for SshSession
source§fn deref_mut(&mut self) -> &mut SshSessionRef
fn deref_mut(&mut self) -> &mut SshSessionRef
Mutably dereferences the value.
source§impl Drop for SshSession
impl Drop for SshSession
source§impl ForeignType for SshSession
impl ForeignType for SshSession
source§type Ref = SshSessionRef
type Ref = SshSessionRef
The type representing a reference to this type.
impl Send for SshSession
impl Sync for SshSession
Auto Trait Implementations§
impl Freeze for SshSession
impl RefUnwindSafe for SshSession
impl Unpin for SshSession
impl UnwindSafe for SshSession
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.