Enum peertalk::DeviceEvent[][src]

pub enum DeviceEvent {
    Attached(DeviceAttachedInfo),
    Detached(DeviceId),
    Paired(DeviceId),
}
Expand description

Event that can occur on device listener

Variants

Device was plugged into host

Tuple Fields of Attached

0: DeviceAttachedInfo
Detached(DeviceId)

Device was unplugged from host

Tuple Fields of Detached

0: DeviceId
Paired(DeviceId)

Device was paired to host (trusting computer was authorized)

Tuple Fields of Paired

0: DeviceId

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.