parameters: (self)
return_statement: return pn_link_get_drain(self._impl)
docstring: The drain mode on this link.
  
          If a link is in drain mode (``True``), then the sending
          endpoint of a link must immediately use up all available
          credit on the link. If this is not possible, the excess
          credit must be returned by invoking :meth:`drained`. Only
          the receiving endpoint can set the drain mode.
  
          When ``False``, this link is not in drain mode.
docstring_summary: The drain mode on this link.
docstring_tokens: The drain mode on this link .
function: def drain_mode(self) -> bool:
          """The drain mode on this link.
  
          If a link is in drain mode (``True``), then the sending
          endpoint of a link must immediately use up all available
          credit on the link. If this is not possible, the excess
          credit must be returned by invoking :meth:`drained`. Only
          the receiving endpoint can set the drain mode.
  
          When ``False``, this link is not in drain mode.
          """
          return pn_link_get_drain(self._impl)
function_tokens: def drain_mode ( self ) -> bool : return pn_link_get_drain ( self . _impl )