Skip to main content

SshCore

Struct SshCore 

Source
pub struct SshCore<B, A, H, S>{ /* private fields */ }

Implementations§

Source§

impl<B, A, H, S> SshCore<B, A, H, S>

Source

pub fn new(backend: B, auth: A, host_keys: H, sessions: S) -> Self

Creates a new instance.

Source

pub fn state(&self) -> ConnectionState

Implements state.

Source

pub fn auth_mut(&mut self) -> &mut A

Implements auth mut.

Source

pub fn sessions_mut(&mut self) -> &mut S

Implements sessions mut.

Source

pub fn ingest_packet(&mut self, packet: &[u8]) -> Result<Vec<CoreDirective>>

Implements ingest packet.

Auto Trait Implementations§

§

impl<B, A, H, S> Freeze for SshCore<B, A, H, S>
where B: Freeze, A: Freeze, H: Freeze, S: Freeze,

§

impl<B, A, H, S> RefUnwindSafe for SshCore<B, A, H, S>

§

impl<B, A, H, S> Send for SshCore<B, A, H, S>
where B: Send, A: Send, H: Send, S: Send,

§

impl<B, A, H, S> Sync for SshCore<B, A, H, S>
where B: Sync, A: Sync, H: Sync, S: Sync,

§

impl<B, A, H, S> Unpin for SshCore<B, A, H, S>
where B: Unpin, A: Unpin, H: Unpin, S: Unpin,

§

impl<B, A, H, S> UnsafeUnpin for SshCore<B, A, H, S>

§

impl<B, A, H, S> UnwindSafe for SshCore<B, A, H, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.