Trait secgate::util::Handle

source ·
pub trait Handle {
    type OpenError;
    type OpenInfo;

    // Required methods
    fn open(info: Self::OpenInfo) -> Result<Self, Self::OpenError>
       where Self: Sized;
    fn release(&mut self);
}
Expand description

A handle that can be opened and released.

Required Associated Types§

source

type OpenError

The error type returned by open.

source

type OpenInfo

The arguments to open.

Required Methods§

source

fn open(info: Self::OpenInfo) -> Result<Self, Self::OpenError>where Self: Sized,

Open a handle.

source

fn release(&mut self)

Release a handle. After this, the handle should not be used.

Implementors§