pub struct BindUri(/* private fields */);
Implementations§
Source§impl BindUri
impl BindUri
pub const TEMPORARY: &'static str = "temporary"
pub const ALLOC_PORT_ID: &'static str = "alloc_port_id"
pub fn scheme(&self) -> BindUriSchema
pub fn as_uri(&self) -> &Uri
pub fn addr_kind(&self) -> AddrKind
pub fn as_iface_bind_uri(&self) -> Option<(Family, String, u16)>
pub fn as_inet_bind_uri(&self) -> Option<SocketAddr>
pub fn as_ble_bind_uri(&self) -> !
pub fn add_prop(&mut self, key: &str, value: &str)
pub fn alloc_port(&self) -> BindUri
pub fn prop(&self, key: &str) -> Option<Cow<'_, str>>
pub fn is_templorary(&self) -> bool
Trait Implementations§
Source§impl From<SocketAddr> for BindUri
impl From<SocketAddr> for BindUri
Source§fn from(value: SocketAddr) -> BindUri
fn from(value: SocketAddr) -> BindUri
Converts to this type from the input type.
Source§impl TryFrom<&BindUri> for SocketAddr
impl TryFrom<&BindUri> for SocketAddr
Source§type Error = TryIntoSocketAddrError
type Error = TryIntoSocketAddrError
The type returned in the event of a conversion error.
Source§fn try_from(
bind_uri: &BindUri,
) -> Result<SocketAddr, <SocketAddr as TryFrom<&BindUri>>::Error>
fn try_from( bind_uri: &BindUri, ) -> Result<SocketAddr, <SocketAddr as TryFrom<&BindUri>>::Error>
Performs the conversion.
Source§impl TryFrom<BindUri> for SocketAddr
impl TryFrom<BindUri> for SocketAddr
Source§type Error = TryIntoSocketAddrError
type Error = TryIntoSocketAddrError
The type returned in the event of a conversion error.
Source§fn try_from(
bind_uri: BindUri,
) -> Result<SocketAddr, <SocketAddr as TryFrom<BindUri>>::Error>
fn try_from( bind_uri: BindUri, ) -> Result<SocketAddr, <SocketAddr as TryFrom<BindUri>>::Error>
Performs the conversion.
impl Eq for BindUri
impl StructuralPartialEq for BindUri
Auto Trait Implementations§
impl !Freeze for BindUri
impl RefUnwindSafe for BindUri
impl Send for BindUri
impl Sync for BindUri
impl Unpin for BindUri
impl UnwindSafe for BindUri
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