pub fn is_open(&self) -> bool {
        match &self.state {
            State::Disabled => false,
            State::DisabledOpening => false,
            State::DisabledOpen(_) => true,
            State::Opening { .. } => false,
            State::Refused => false,
            State::Open { .. } => true,
            State::Poisoned => false,
        }
    }
/// Returns true if the substream is currently open.
Returns true if the substream is currently open.
Returns true if the substream is currently open .
pub fn is_open(&self) -> bool {
        match &self.state {
            State::Disabled => false,
            State::DisabledOpening => false,
            State::DisabledOpen(_) => true,
            State::Opening { .. } => false,
            State::Refused => false,
            State::Open { .. } => true,
            State::Poisoned => false,
        }
    }
pub fn is_open ( & self ) -> bool { match & self . state { State :: Disabled => false , State :: DisabledOpening => false , State :: DisabledOpen ( _ ) => true , State :: Opening { .. } => false , State :: Refused => false , State :: Open { .. } => true , State :: Poisoned => false , } }
Returns true if the substream is currently open.
Returns true if the substream is currently open .
&self
&self