#[non_exhaustive]pub enum DuplexOperation {
Turn,
Control,
}Expand description
Which duplex operation an Error::DuplexDeadlineExceeded refers to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Turn
A turn started by
DuplexSession::send, bounded by
DuplexOptions::turn_timeout.
Control
A control request such as
DuplexSession::interrupt,
bounded by
DuplexOptions::control_timeout.
Trait Implementations§
Source§impl Clone for DuplexOperation
impl Clone for DuplexOperation
impl Copy for DuplexOperation
Source§impl Debug for DuplexOperation
impl Debug for DuplexOperation
Source§impl Display for DuplexOperation
Available on crate feature async only.
impl Display for DuplexOperation
Available on crate feature
async only.impl Eq for DuplexOperation
Source§impl Hash for DuplexOperation
impl Hash for DuplexOperation
Source§impl PartialEq for DuplexOperation
impl PartialEq for DuplexOperation
impl StructuralPartialEq for DuplexOperation
Auto Trait Implementations§
impl Freeze for DuplexOperation
impl RefUnwindSafe for DuplexOperation
impl Send for DuplexOperation
impl Sync for DuplexOperation
impl Unpin for DuplexOperation
impl UnsafeUnpin for DuplexOperation
impl UnwindSafe for DuplexOperation
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