Trait Command

Source
pub trait Command: Serialize + Debug {
    type Response: DeserializeOwned + Debug;

    const COMMAND: &'static str;
}

Required Associated Constants§

Source

const COMMAND: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Command for Logout

Source§

const COMMAND: &'static str = "logout"

Source§

type Response = ()

Source§

impl<'a> Command for ContactCheck<'a>

Source§

const COMMAND: &'static str = "check"

Source§

type Response = CheckResponse

Source§

impl<'a> Command for ContactCreate<'a>

Source§

impl<'a> Command for ContactDelete<'a>

Source§

const COMMAND: &'static str = "delete"

Source§

type Response = ()

Source§

impl<'a> Command for ContactInfo<'a>

Source§

impl<'a> Command for ContactUpdate<'a>

Source§

const COMMAND: &'static str = "update"

Source§

type Response = ()

Source§

impl<'a> Command for DomainCheck<'a>

Source§

const COMMAND: &'static str = "check"

Source§

type Response = CheckResponse

Source§

impl<'a> Command for DomainCreate<'a>

Source§

const COMMAND: &'static str = "create"

Source§

type Response = DomainCreateResponse

Source§

impl<'a> Command for DomainDelete<'a>

Source§

const COMMAND: &'static str = "delete"

Source§

type Response = ()

Source§

impl<'a> Command for DomainInfo<'a>

Source§

impl<'a> Command for DomainRenew<'a>

Source§

impl<'a> Command for DomainTransfer<'a>

Source§

const COMMAND: &'static str = "transfer"

Source§

type Response = DomainTransferResponse

Source§

impl<'a> Command for DomainUpdate<'a>

Source§

const COMMAND: &'static str = "update"

Source§

type Response = ()

Source§

impl<'a> Command for HostCheck<'a>

Source§

const COMMAND: &'static str = "check"

Source§

type Response = CheckResponse

Source§

impl<'a> Command for HostCreate<'a>

Source§

const COMMAND: &'static str = "create"

Source§

type Response = HostCreateResponse

Source§

impl<'a> Command for HostDelete<'a>

Source§

const COMMAND: &'static str = "delete"

Source§

type Response = ()

Source§

impl<'a> Command for HostInfo<'a>

Source§

const COMMAND: &'static str = "info"

Source§

type Response = HostInfoResponse

Source§

impl<'a> Command for HostUpdate<'a>

Source§

const COMMAND: &'static str = "update"

Source§

type Response = ()

Source§

impl<'a> Command for Login<'a>

Source§

const COMMAND: &'static str = "login"

Source§

type Response = ()

Source§

impl<'a> Command for MessageAck<'a>

Source§

const COMMAND: &'static str = "poll"

Source§

type Response = String

Source§

impl<'a> Command for MessagePoll<'a>