pub struct ClientInfo {
pub index: u32,
pub name: CString,
pub owner_module_index: Option<u32>,
pub driver: Option<CString>,
pub props: Props,
}Expand description
Server state for a client, in response to super::Command::GetClientInfo.
Fields§
§index: u32ID of the client.
name: CStringThe name of the client.
owner_module_index: Option<u32>The index of the owning module.
driver: Option<CString>The driver name.
props: PropsThe client properties.
Trait Implementations§
Source§impl Clone for ClientInfo
impl Clone for ClientInfo
Source§fn clone(&self) -> ClientInfo
fn clone(&self) -> ClientInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientInfo
impl Debug for ClientInfo
Source§impl Default for ClientInfo
impl Default for ClientInfo
Source§fn default() -> ClientInfo
fn default() -> ClientInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientInfo
impl PartialEq for ClientInfo
Source§impl TagStructRead for ClientInfo
impl TagStructRead for ClientInfo
Source§fn read(
ts: &mut TagStructReader<'_>,
_protocol_version: u16,
) -> Result<Self, ProtocolError>
fn read( ts: &mut TagStructReader<'_>, _protocol_version: u16, ) -> Result<Self, ProtocolError>
Read an instance of
Self from a tagstruct.Source§impl TagStructWrite for ClientInfo
impl TagStructWrite for ClientInfo
Source§fn write(
&self,
w: &mut TagStructWriter<'_>,
_protocol_version: u16,
) -> Result<(), ProtocolError>
fn write( &self, w: &mut TagStructWriter<'_>, _protocol_version: u16, ) -> Result<(), ProtocolError>
Write
self into a tagstruct.impl CommandReply for ClientInfo
impl Eq for ClientInfo
impl StructuralPartialEq for ClientInfo
Auto Trait Implementations§
impl Freeze for ClientInfo
impl RefUnwindSafe for ClientInfo
impl Send for ClientInfo
impl Sync for ClientInfo
impl Unpin for ClientInfo
impl UnwindSafe for ClientInfo
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