[][src]Enum thrussh_keys::agent::Constraint

pub enum Constraint {
    KeyLifetime {
        seconds: u32,
    },
    Confirm,
    Extensions {
        name: Vec<u8>,
        details: Vec<u8>,
    },
}

Constraints on how keys can be used

Variants

KeyLifetime

The key shall disappear from the agent's memory after that many seconds.

Fields of KeyLifetime

seconds: u32
Confirm

Signatures need to be confirmed by the agent (for instance using a dialog).

Extensions

Custom constraints

Fields of Extensions

name: Vec<u8>details: Vec<u8>

Trait Implementations

impl Debug for Constraint[src]

impl Eq for Constraint[src]

impl PartialEq<Constraint> for Constraint[src]

impl StructuralEq for Constraint[src]

impl StructuralPartialEq for Constraint[src]

Auto Trait Implementations

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.