pub fn send_or_discard(&mut self, notification: Vec<u8>) {
        if let State::Open { substream, .. } = &mut self.state {
            let _ = substream.start_send_unpin(notification);
        }
    }
/// Sends out a notification.
///
/// If the substream is closed, or not ready to send out a notification yet, then the
/// notification is silently discarded.
///
/// You are encouraged to call [`NotifsOutHandler::poll_ready`] beforehand to determine
/// whether this will succeed. If `Poll::Ready(true)` is returned, then this method will send
/// out a notification.
Sends out a notification.
If the substream is closed, or not ready to send out a notification yet, then the
notification is silently discarded.

You are encouraged to call [`NotifsOutHandler::poll_ready`] beforehand to determine
whether this will succeed. If `Poll::Ready(true)` is returned, then this method will send
out a notification.
Sends out a notification . If the substream is closed or not ready to send out a notification yet then the notification is silently discarded . You are encouraged to call [ ` NotifsOutHandler :: poll_ready ` ] beforehand to determine whether this will succeed . If ` Poll :: Ready ( true ) ` is returned then this method will send out a notification .
pub fn send_or_discard(&mut self, notification: Vec<u8>) {
        if let State::Open { substream, .. } = &mut self.state {
            let _ = substream.start_send_unpin(notification);
        }
    }
pub fn send_or_discard ( & mut self , notification : Vec < u8 > ) { if let State :: Open { substream , .. } = & mut self . state { let _ = substream . start_send_unpin ( notification ) ; } }
Sends out a notification.
Sends out a notification .
&mut self
notification
Vec<u8>
&mut self
notification
Vec<u8>