Source File
icegathererstate.go
Belonging Package
github.com/pion/webrtc/v4
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage webrtcimport ()// ICEGathererState represents the current state of the ICE gatherer.type ICEGathererState uint32const (// ICEGathererStateUnknown is the enum's zero-value.ICEGathererStateUnknown ICEGathererState = iota// ICEGathererStateNew indicates object has been created but// gather() has not been called.ICEGathererStateNew// ICEGathererStateGathering indicates gather() has been called,// and the ICEGatherer is in the process of gathering candidates.ICEGathererStateGathering// ICEGathererStateComplete indicates the ICEGatherer has completed gathering.ICEGathererStateComplete// ICEGathererStateClosed indicates the closed state can only be entered// when the ICEGatherer has been closed intentionally by calling close().ICEGathererStateClosed)func ( ICEGathererState) () string {switch {case ICEGathererStateNew:return "new"case ICEGathererStateGathering:return "gathering"case ICEGathererStateComplete:return "complete"case ICEGathererStateClosed:return "closed"default:return ErrUnknownType.Error()}}func atomicStoreICEGathererState( *ICEGathererState, ICEGathererState) {atomic.StoreUint32((*uint32)(), uint32())}func atomicLoadICEGathererState( *ICEGathererState) ICEGathererState {return ICEGathererState(atomic.LoadUint32((*uint32)()))}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |