pub struct ClientId(/* private fields */);
Expand description
A Client Id
Implementations§
Source§impl ClientId
impl ClientId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new ClientId from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ClientIdRef>
pub fn into_boxed_ref(self) -> Box<ClientIdRef>
Converts this ClientId
into a Box<ClientIdRef>
This will drop any excess capacity.
Methods from Deref<Target = ClientIdRef>§
Trait Implementations§
Source§impl AsRef<ClientIdRef> for ClientId
impl AsRef<ClientIdRef> for ClientId
Source§fn as_ref(&self) -> &ClientIdRef
fn as_ref(&self) -> &ClientIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ClientIdRef> for ClientId
impl Borrow<ClientIdRef> for ClientId
Source§fn borrow(&self) -> &ClientIdRef
fn borrow(&self) -> &ClientIdRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for ClientId
impl<'de> Deserialize<'de> for ClientId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ClientIdRef> for ClientId
impl From<&ClientIdRef> for ClientId
Source§fn from(s: &ClientIdRef) -> Self
fn from(s: &ClientIdRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<ClientIdRef>> for ClientId
impl From<Box<ClientIdRef>> for ClientId
Source§fn from(r: Box<ClientIdRef>) -> Self
fn from(r: Box<ClientIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ClientIdRef>> for ClientId
impl<'a> From<Cow<'a, ClientIdRef>> for ClientId
Source§fn from(r: Cow<'a, ClientIdRef>) -> Self
fn from(r: Cow<'a, ClientIdRef>) -> Self
Converts to this type from the input type.
Source§impl Ord for ClientId
impl Ord for ClientId
Source§impl PartialEq<&ClientIdRef> for ClientId
impl PartialEq<&ClientIdRef> for ClientId
Source§impl PartialEq<ClientId> for &ClientIdRef
impl PartialEq<ClientId> for &ClientIdRef
Source§impl PartialEq<ClientId> for ClientIdRef
impl PartialEq<ClientId> for ClientIdRef
Source§impl PartialEq<ClientIdRef> for ClientId
impl PartialEq<ClientIdRef> for ClientId
Source§impl PartialOrd for ClientId
impl PartialOrd for ClientId
impl Eq for ClientId
impl StructuralPartialEq for ClientId
Auto Trait Implementations§
impl Freeze for ClientId
impl RefUnwindSafe for ClientId
impl Send for ClientId
impl Sync for ClientId
impl Unpin for ClientId
impl UnwindSafe for ClientId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)