[][src]Trait buttplug::device::protocol::ButtplugProtocolCreator

pub trait ButtplugProtocolCreator: ButtplugProtocol {
    fn new_protocol(
        name: &str,
        attrs: MessageAttributesMap
    ) -> Box<dyn ButtplugProtocol>
    where
        Self: Sized
; fn try_create(
        device_impl: &dyn DeviceImpl,
        config: DeviceProtocolConfiguration
    ) -> BoxFuture<'static, Result<Box<dyn ButtplugProtocol>, ButtplugError>>
    where
        Self: Sized
, { ... } }

Required methods

fn new_protocol(
    name: &str,
    attrs: MessageAttributesMap
) -> Box<dyn ButtplugProtocol> where
    Self: Sized

Loading content...

Provided methods

fn try_create(
    device_impl: &dyn DeviceImpl,
    config: DeviceProtocolConfiguration
) -> BoxFuture<'static, Result<Box<dyn ButtplugProtocol>, ButtplugError>> where
    Self: Sized

Loading content...

Implementors

Loading content...