pub enum WearableEvent {
Message {
peer: String,
path: String,
data: Vec<u8>,
},
Stream(WearableStream),
}Expand description
Something the paired device sent.
Variants§
Message
A message sent with send_wearable_message on the other device.
Fields
Stream(WearableStream)
A stream opened with open_wearable_stream on the other device.
Auto Trait Implementations§
impl !RefUnwindSafe for WearableEvent
impl !Sync for WearableEvent
impl !UnwindSafe for WearableEvent
impl Freeze for WearableEvent
impl Send for WearableEvent
impl Unpin for WearableEvent
impl UnsafeUnpin for WearableEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more