Ë
    ómxi:	  ã            	       ó  — d Z ddlZddlmZ  G d„ dej                   ej
                  dd«      «      Z G d„ dej                   ej
                  dd	«      «      Z eej                  j                  j                  dddd«      Zd
„ Zd„ Zy)z;Utilities for use with the base interface of RPC Framework.é    N)Úbasec                   ó   — e Zd ZdZy)Ú_Completionz,A trivial implementation of base.Completion.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú_/home/htdocs/ttos/venv/lib/python3.12/site-packages/grpc/framework/interfaces/base/utilities.pyr   r      s   „ ò 7r   r   ©Úterminal_metadataÚcodeÚmessagec                   ó   — e Zd ZdZy)Ú_Subscriptionz.A trivial implementation of base.Subscription.Nr   r   r   r   r   r   #   s   „ ò 9r   r   )ÚkindÚtermination_callbackÚ	allowanceÚoperatorÚprotocol_receiverc                 ó   — t        | ||«      S )a@  Creates a base.Completion aggregating the given operation values.

    Args:
      terminal_metadata: A terminal metadata value for an operation.
      code: A code value for an operation.
      message: A message value for an operation.

    Returns:
      A base.Completion aggregating the given operation values.
    )r   r   s      r   Ú
completionr   8   s   € ô Ð(¨$°Ó8Ð8r   c                 ód   — t        t        j                  j                  j                  dd| |«      S )ah  Creates a "full" base.Subscription for the given base.Operator.

    Args:
      operator: A base.Operator to be used in an operation.
      protocol_receiver: A base.ProtocolReceiver to be used in an operation.

    Returns:
      A base.Subscription of kind base.Subscription.Kind.FULL wrapping the given
        base.Operator and base.ProtocolReceiver.
    N)r   r   ÚSubscriptionÚKindÚFULL)r   r   s     r   Úfull_subscriptionr   F   s/   € ô Ü×Ñ×Ñ×#Ñ# T¨4°Ð;Lóð r   )r
   ÚcollectionsÚgrpc.framework.interfaces.baser   Ú
CompletionÚ
namedtupler   r   r   r   ÚNONEÚ_NONE_SUBSCRIPTIONr   r   r   r   r   ú<module>r&      s™   ðñ Bã å /ô7Ø‡O�OØ€K×ÑØð	
óô7ô9Ø×ÑØ€K×ÑØð	
ó	ô9ñ  #Ø×Ñ×Ñ×Ñ  t¨T°4óÐ ò
9ór   