Struct sorceress::server::Notify [−][src]
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 giveNotifySetting::Start
, the server will remember your return address and send you notifications. If you giveNotifySetting::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]
fn partial_cmp(&self, other: &Notify) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,