pub enum UnderlyingLayerCommand {
Connect(String, Arc<Mutex<Option<Sender<Result<(), Error>>>>>),
SendData(Vec<u8>),
Close,
TimerReset {
kind: String,
duration_ms: u64,
},
TimerCancel {
kind: String,
},
}Expand description
Underlying layer commands (sent TO transport FROM message loop)
Variants§
Connect(String, Arc<Mutex<Option<Sender<Result<(), Error>>>>>)
SendData(Vec<u8>)
Close
TimerReset
Start or reset a timer When the timer expires, the underlying layer should send TimerExpired event
TimerCancel
Cancel a timer
Trait Implementations§
Source§impl Clone for UnderlyingLayerCommand
impl Clone for UnderlyingLayerCommand
Source§fn clone(&self) -> UnderlyingLayerCommand
fn clone(&self) -> UnderlyingLayerCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnderlyingLayerCommand
impl RefUnwindSafe for UnderlyingLayerCommand
impl Send for UnderlyingLayerCommand
impl Sync for UnderlyingLayerCommand
impl Unpin for UnderlyingLayerCommand
impl UnsafeUnpin for UnderlyingLayerCommand
impl UnwindSafe for UnderlyingLayerCommand
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