Enum peertalk::DeviceEvent [−][src]
pub enum DeviceEvent {
Attached(DeviceAttachedInfo),
Detached(DeviceId),
Paired(DeviceId),
}
Expand description
Event that can occur on device listener
Variants
Attached(DeviceAttachedInfo)
Device was plugged into host
Tuple Fields of Attached
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
type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Performs the conversion.