[][src]Struct thrussh_keys::encoding::Position

pub struct Position<'a> { /* fields omitted */ }

A cursor-like type to read SSH-encoded values.

Implementations

impl<'a> Position<'a>[src]

pub fn read_string(&mut self) -> Result<&'a [u8], Error>[src]

Read one string from this reader.

pub fn read_u32(&mut self) -> Result<u32, Error>[src]

Read a u32 from this reader.

pub fn read_byte(&mut self) -> Result<u8, Error>[src]

Read one byte from this reader.

pub fn read_mpint(&mut self) -> Result<&'a [u8], Error>[src]

Read one byte from this reader.

Trait Implementations

impl<'a> Debug for Position<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Position<'a>[src]

impl<'a> Send for Position<'a>[src]

impl<'a> Sync for Position<'a>[src]

impl<'a> Unpin for Position<'a>[src]

impl<'a> UnwindSafe for Position<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.