pub enum BridgeEvent {
ToClasp(Message),
Connected,
Disconnected {
reason: Option<String>,
},
Error(String),
}Expand description
Events from a bridge
Variants§
ToClasp(Message)
Message to send to Clasp
Connected
Bridge connected
Disconnected
Bridge disconnected
Error(String)
Error occurred
Trait Implementations§
Source§impl Clone for BridgeEvent
impl Clone for BridgeEvent
Source§fn clone(&self) -> BridgeEvent
fn clone(&self) -> BridgeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BridgeEvent
impl RefUnwindSafe for BridgeEvent
impl Send for BridgeEvent
impl Sync for BridgeEvent
impl Unpin for BridgeEvent
impl UnwindSafe for BridgeEvent
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