Struct sorceress::server::Notify[][src]

pub struct Notify { /* fields omitted */ }

Register to receive notifications from server.

Asynchronous. Replies to the sender with a Reply::NotifyDone message containing a client ID and an optional max_logins parameter when complete. If this client has registered for notifications before, the client ID may be the same. Otherwise it will be a new one. Clients can use this ID in multi-client situations to avoid conflicts when allocating resources such as node IDs, bus indices, and buffer numbers. max_logins is only returned when the client ID argument is supplied in this command.

Implementations

impl Notify[src]

pub fn new(setting: NotifySetting) -> Notify[src]

Creates a new Notify command.

Arguments

  • setting - If you give NotifySetting::Start, the server will remember your return address and send you notifications. If you give NotifySetting::Stop, the server will stop sending notifications to your address.

pub fn client_id(self, client_id: i32) -> Notify[src]

Set the optional client ID.

Trait Implementations

impl AsyncCommand for Notify[src]

impl Clone for Notify[src]

impl Command for Notify[src]

impl Debug for Notify[src]

impl PartialEq<Notify> for Notify[src]

impl PartialOrd<Notify> for Notify[src]

impl StructuralPartialEq for Notify[src]

Auto Trait Implementations

impl RefUnwindSafe for Notify

impl Send for Notify

impl Sync for Notify

impl Unpin for Notify

impl UnwindSafe for Notify

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.