#[non_exhaustive]pub enum DataConnectionEvent {
Bound,
BindError(RequestError),
}Expand description
What a DataConnection reports.
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.
Bound
The server accepted the ConnectionBind: the connection now carries the peer’s bytes and nothing else, both ways (RFC 6062 §4.5).
BindError(RequestError)
The ConnectionBind failed, or went unanswered for CONNECTION_BIND_TIMEOUT. The
connection is of no use; the application closes it.
Trait Implementations§
Source§impl Debug for DataConnectionEvent
impl Debug for DataConnectionEvent
Source§impl PartialEq for DataConnectionEvent
impl PartialEq for DataConnectionEvent
impl StructuralPartialEq for DataConnectionEvent
Auto Trait Implementations§
impl !RefUnwindSafe for DataConnectionEvent
impl !UnwindSafe for DataConnectionEvent
impl Forget for DataConnectionEvent
impl Freeze for DataConnectionEvent
impl Move for DataConnectionEvent
impl Send for DataConnectionEvent
impl Sync for DataConnectionEvent
impl Unpin for DataConnectionEvent
impl UnsafeUnpin for DataConnectionEvent
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