Struct grpcio::Channel [−][src]
pub struct Channel { /* fields omitted */ }
Expand description
A gRPC channel.
Channels are an abstraction of long-lived connections to remote servers. More client objects can reuse the same channel.
Use ChannelBuilder
to build a Channel
.
Implementations
impl Channel
[src]
impl Channel
[src]pub unsafe fn new(
cq: CompletionQueue,
env: Arc<Environment>,
channel: *mut grpc_channel
) -> Channel
[src]
pub unsafe fn new(
cq: CompletionQueue,
env: Arc<Environment>,
channel: *mut grpc_channel
) -> Channel
[src]Create a new channel. Avoid using this directly and use
ChannelBuilder
to build a Channel
instead.
Safety
The given grpc_channel must correspond to an instantiated grpc core channel. Takes exclusive ownership of the channel and will close it after use.
pub fn check_connectivity_state(
&self,
try_to_connect: bool
) -> ConnectivityState
[src]
&self,
try_to_connect: bool
) -> ConnectivityState
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more