pub enum Closed {
ByPeer,
Locally,
Error(String),
}Expand description
Why a channel closed.
Variants§
ByPeer
The peer closed cleanly.
Locally
This side called L2capChannel::close.
Error(String)
The stream reported an error.
Trait Implementations§
impl Eq for Closed
impl StructuralPartialEq for Closed
Auto Trait Implementations§
impl Forget for Closed
impl Freeze for Closed
impl Move for Closed
impl RefUnwindSafe for Closed
impl Send for Closed
impl Sync for Closed
impl Unpin for Closed
impl UnsafeUnpin for Closed
impl UnwindSafe for Closed
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