Struct libyubihsm::Session [] [src]

pub struct Session { /* fields omitted */ }

Represents a Session with the HSM.

The Session is where the bulk of the YubiHSM's functionality is found. A Session is needed to perform any cryptographic or device administration tasks.

Methods

impl Session
[src]

[src]

Reset the device to factory settings and reboot.

Note that since the device reboots when this function is called, this function is far more likely to return a ReturnCode::NetError upon success, since it will vanish out from underneath the connector. However, it is left to library consumers to decide whether or not this is an acceptable result.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Session
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Session
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Session

impl !Sync for Session