Struct fabruic::Connecting [−][src]
pub struct Connecting(_);
Expand description
Represent’s an intermediate state to build a Connection
.
Implementations
The negotiated application protocol. See
Builder::set_protocols
.
Errors
error::Connecting
if the Connection
failed to be established.
The peer’s address. Clients may change addresses at will, e.g. when switching to a cellular internet connection.
pub async fn accept<T: DeserializeOwned + Serialize + Send + 'static>(
self
) -> Result<Connection<T>, Connecting>
pub async fn accept<T: DeserializeOwned + Serialize + Send + 'static>(
self
) -> Result<Connection<T>, Connecting>
Accept the Connection
with the given T
as the type negotiator for
new streams.
Errors
error::Connecting
if the Connection
failed to be established.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Connecting
impl Send for Connecting
impl Sync for Connecting
impl Unpin for Connecting
impl !UnwindSafe for Connecting
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more