[][src]Struct buttplug::connector::ButtplugInProcessClientConnector

pub struct ButtplugInProcessClientConnector { /* fields omitted */ }

In-process Buttplug Server Connector

The In-Process Connector contains a ButtplugServer, meaning that both the ButtplugClient and ButtplugServer will exist in the same process. This is useful for developing applications, or for distributing an applications without requiring access to an outside ButtplugServer.

Notes

Buttplug, as a project, is built in a way that tries to make sure all programs will work with new versions of the library. This is why we have ButtplugClient for applications, and Connectors to access out-of-process ButtplugServers over IPC, network, etc. It means that the out-of-process server can be upgraded by the user at any time, even if the ButtplugClient using application hasn't been upgraded. This allows the program to support hardware that may not have even been released when it was published.

While including an EmbeddedConnector in your application is the quickest and easiest way to develop (and we highly recommend developing that way), and also an easy way to get users up and running as quickly as possible, we recommend also including some sort of IPC Connector in order for your application to connect to newer servers when they come out.

Implementations

impl<'a> ButtplugInProcessClientConnector[src]

pub fn new(name: &str, max_ping_time: u64) -> Self[src]

Creates a new in-process connector, with a server instance.

Sets up a server, using the basic ButtplugServer construction arguments. Takes the server's name and the ping time it should use, with a ping time of 0 meaning infinite ping.

pub fn server_ref(&'a self) -> &'a ButtplugServer[src]

Get a reference to the internal server.

Allows the owner to manipulate the internal server instance. Useful for setting up DeviceCommunicationManagers before connection.

Trait Implementations

impl ButtplugConnector<ButtplugSpecV2ClientMessage, ButtplugSpecV2ServerMessage> for ButtplugInProcessClientConnector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> GetTypeId for T where
    T: Any
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]