pub struct ServerInfoV2 { /* private fields */ }Implementations§
Source§impl ServerInfoV2
impl ServerInfoV2
pub fn server_name(&self) -> &String
Source§impl ServerInfoV2
impl ServerInfoV2
pub fn message_version(&self) -> ButtplugMessageSpecVersion
pub fn max_ping_time(&self) -> u32
Source§impl ServerInfoV2
impl ServerInfoV2
pub fn new( server_name: &str, message_version: ButtplugMessageSpecVersion, max_ping_time: u32, ) -> Self
Trait Implementations§
Source§impl ButtplugMessage for ServerInfoV2
impl ButtplugMessage for ServerInfoV2
Source§impl ButtplugMessageValidator for ServerInfoV2
impl ButtplugMessageValidator for ServerInfoV2
Source§fn is_valid(&self) -> Result<(), ButtplugMessageError>
fn is_valid(&self) -> Result<(), ButtplugMessageError>
Returns () if the message is valid, otherwise returns a message error.
fn is_system_id(&self, id: u32) -> Result<(), ButtplugMessageError>
fn is_not_system_id(&self, id: u32) -> Result<(), ButtplugMessageError>
fn is_in_command_range( &self, value: f64, error_msg: String, ) -> Result<(), ButtplugMessageError>
Source§impl Clone for ServerInfoV2
impl Clone for ServerInfoV2
Source§fn clone(&self) -> ServerInfoV2
fn clone(&self) -> ServerInfoV2
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 ServerInfoV2
impl Debug for ServerInfoV2
Source§impl<'de> Deserialize<'de> for ServerInfoV2
impl<'de> Deserialize<'de> for ServerInfoV2
Source§fn 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
Source§impl From<ServerInfoV2> for ButtplugServerMessageV2
impl From<ServerInfoV2> for ButtplugServerMessageV2
Source§fn from(msg: ServerInfoV2) -> ButtplugServerMessageV2
fn from(msg: ServerInfoV2) -> ButtplugServerMessageV2
Converts to this type from the input type.
Source§impl From<ServerInfoV2> for ButtplugServerMessageV3
impl From<ServerInfoV2> for ButtplugServerMessageV3
Source§fn from(msg: ServerInfoV2) -> ButtplugServerMessageV3
fn from(msg: ServerInfoV2) -> ButtplugServerMessageV3
Converts to this type from the input type.
Source§impl From<ServerInfoV2> for ButtplugServerMessageV4
impl From<ServerInfoV2> for ButtplugServerMessageV4
Source§fn from(msg: ServerInfoV2) -> ButtplugServerMessageV4
fn from(msg: ServerInfoV2) -> ButtplugServerMessageV4
Converts to this type from the input type.
Source§impl From<ServerInfoV2> for ServerInfoV0
impl From<ServerInfoV2> for ServerInfoV0
Source§fn from(msg: ServerInfoV2) -> Self
fn from(msg: ServerInfoV2) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServerInfoV2
impl PartialEq for ServerInfoV2
Source§impl Serialize for ServerInfoV2
impl Serialize for ServerInfoV2
impl Eq for ServerInfoV2
impl StructuralPartialEq for ServerInfoV2
Auto Trait Implementations§
impl Freeze for ServerInfoV2
impl RefUnwindSafe for ServerInfoV2
impl Send for ServerInfoV2
impl Sync for ServerInfoV2
impl Unpin for ServerInfoV2
impl UnwindSafe for ServerInfoV2
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