pub trait Bind: Listener + 'static {
type Error: Error + Send + 'static;
// Required methods
async fn bind(rocket: &Rocket<Ignite>) -> Result<Self, Self::Error>;
fn bind_endpoint(to: &Rocket<Ignite>) -> Result<Endpoint, Self::Error>;
}
Required Associated Types§
Required Methods§
sourceasync fn bind(rocket: &Rocket<Ignite>) -> Result<Self, Self::Error>
async fn bind(rocket: &Rocket<Ignite>) -> Result<Self, Self::Error>
§Future Bounds
The Future
generated by this async fn
must be Send
.
fn bind_endpoint(to: &Rocket<Ignite>) -> Result<Endpoint, Self::Error>
Object Safety§
This trait is not object safe.