pub struct PreparedChannel { /* private fields */ }Expand description
A Channel that has been configured but not yet connected to a remote peer.
Created by Channel::builder. Call endpoint to obtain the
local connection information, exchange it with the remote side, then call
handshake with the remote’s endpoint to finish the connection.
Implementations§
Source§impl PreparedChannel
impl PreparedChannel
Sourcepub fn endpoint(&self) -> QueuePairEndpoint
pub fn endpoint(&self) -> QueuePairEndpoint
Returns the local endpoint information needed by the remote peer to complete the handshake.
Auto Trait Implementations§
impl Freeze for PreparedChannel
impl RefUnwindSafe for PreparedChannel
impl Send for PreparedChannel
impl Sync for PreparedChannel
impl Unpin for PreparedChannel
impl UnsafeUnpin for PreparedChannel
impl UnwindSafe for PreparedChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more