channel_stack_builder_impl.h
Go to the documentation of this file.
1 // Copyright 2016 gRPC authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_BUILDER_IMPL_H
16 #define GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_BUILDER_IMPL_H
17 
19 
20 #include "absl/status/statusor.h"
21 
25 
26 namespace grpc_core {
27 
28 // Build a channel stack.
29 // Allows interested parties to add filters to the stack, and to query an
30 // in-progress build.
31 // Carries some useful context for the channel stack, such as a target string
32 // and a transport.
34  public:
36 
37  // Build the channel stack.
38  // After success, *result holds the new channel stack,
39  // prefix_bytes are allocated before the channel stack,
40  // initial_refs, destroy, destroy_arg are as per grpc_channel_stack_init
41  // On failure, *result is nullptr.
43 };
44 } // namespace grpc_core
45 
46 #endif // GRPC_CORE_LIB_CHANNEL_CHANNEL_STACK_BUILDER_IMPL_H
channel_fwd.h
grpc_core
Definition: call_metric_recorder.h:31
grpc_core::ChannelStackBuilder
Definition: channel_stack_builder.h:41
grpc_core::ChannelStackBuilder::ChannelStackBuilder
ChannelStackBuilder(const char *name, grpc_channel_stack_type type)
Definition: channel_stack_builder.h:44
grpc_core::ChannelStackBuilderImpl
Definition: channel_stack_builder_impl.h:33
grpc_core::ChannelStackBuilderImpl::Build
absl::StatusOr< RefCountedPtr< grpc_channel_stack > > Build() override
Definition: channel_stack_builder_impl.cc:42
ref_counted_ptr.h
absl::StatusOr
Definition: abseil-cpp/absl/status/statusor.h:187
channel_stack_builder.h
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:44