persistentuiview

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PersistentUiView_TypeID = 0x826f7187e23c37c9

PersistentUiView_TypeID is the unique identifier for the type PersistentUiView.

Variables

This section is empty.

Functions

func PersistentUiView_Methods

func PersistentUiView_Methods(methods []server.Method, s PersistentUiView_Server) []server.Method

PersistentUiView_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func PersistentUiView_NewServer

func PersistentUiView_NewServer(s PersistentUiView_Server) *server.Server

PersistentUiView_NewServer creates a new Server from an implementation of PersistentUiView_Server.

Types

type PersistentUiView

type PersistentUiView capnp.Client

func PersistentUiView_ServerToClient

func PersistentUiView_ServerToClient(s PersistentUiView_Server) PersistentUiView

PersistentUiView_ServerToClient creates a new Client from an implementation of PersistentUiView_Server. The caller is responsible for calling Release on the returned Client.

func (PersistentUiView) AddRef

AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.

func (PersistentUiView) DecodeFromPtr

func (PersistentUiView) DecodeFromPtr(p capnp.Ptr) PersistentUiView

func (PersistentUiView) EncodeAsPtr

func (c PersistentUiView) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (PersistentUiView) GetFlowLimiter

func (c PersistentUiView) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (PersistentUiView) GetViewInfo

func (PersistentUiView) IsSame

func (c PersistentUiView) IsSame(other PersistentUiView) bool

IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.

func (PersistentUiView) IsValid

func (c PersistentUiView) IsValid() bool

IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.

func (PersistentUiView) NewOfferSession

func (PersistentUiView) NewRequestSession

func (PersistentUiView) NewSession

func (PersistentUiView) Release

func (c PersistentUiView) Release()

Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.

Release will panic if c has already been released, but not if c is nil or resolved to null.

func (PersistentUiView) Resolve

func (c PersistentUiView) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (PersistentUiView) SetFlowLimiter

func (c PersistentUiView) SetFlowLimiter(lim fc.FlowLimiter)

Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.

func (PersistentUiView) String

func (c PersistentUiView) String() string

String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.

type PersistentUiView_List

type PersistentUiView_List = capnp.CapList[PersistentUiView]

PersistentUiView_List is a list of PersistentUiView.

func NewPersistentUiView_List

func NewPersistentUiView_List(s *capnp.Segment, sz int32) (PersistentUiView_List, error)

NewPersistentUiView creates a new list of PersistentUiView.

type PersistentUiView_Server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL