Struct skyway_webrtc_gateway_api::prelude::PhantomId
source · pub struct PhantomId(_);
Expand description
It’s just a dummy Id data returning None.
There are many similar structs holding SocketAddr and a kind of ID.
PhantomId is for a struct which doesn’t have id field.
It will be set as a generics parameter of SocketInfo
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PhantomId
impl<'de> Deserialize<'de> for PhantomId
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl SerializableId for PhantomId
impl SerializableId for PhantomId
impl StructuralPartialEq for PhantomId
Auto Trait Implementations
impl RefUnwindSafe for PhantomId
impl Send for PhantomId
impl Sync for PhantomId
impl Unpin for PhantomId
impl UnwindSafe for PhantomId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more