pub fn from_shared(s: impl Into<Bytes>) -> Result<Endpoint, InvalidUri> {
        let uri = Uri::from_maybe_shared(s.into())?;
        Ok(Self::builder(uri))
    }
Create an [`Endpoint`] from shared bytes.

```
# use tonic::transport::Channel;
Channel::from_shared("https://example.com");
```
tonic/src/transport/channel/mod.rs