pub enum From {
NoSuchValue(Path),
Denied(Path),
Unsubscribed(Id),
Subscribed(Path, Id, Value),
Update(Id, Value),
Heartbeat,
WriteResult(Id, Value, WriteId),
}Variants§
NoSuchValue(Path)
The requested subscription to Path cannot be completed because it doesn’t exist
Denied(Path)
Permission to subscribe to the specified path is denied.
Unsubscribed(Id)
You have been unsubscriped from Path. This can be the result of an Unsubscribe message, or it may be sent unsolicited, in the case the value is no longer published, or the publisher is in the process of shutting down.
Subscribed(Path, Id, Value)
You are now subscribed to Path with subscription id Id, and
The next message contains the first value for Id. All further
communications about this subscription will only refer to the
Id.
Update(Id, Value)
A value update to Id
Heartbeat
Indicates that the publisher is idle, but still functioning correctly.
WriteResult(Id, Value, WriteId)
Indicates the result of a write request
Trait Implementations§
Source§impl Pack for From
impl Pack for From
fn encoded_len(&self) -> usize
fn encode(&self, buf: &mut impl BufMut) -> Result<(), PackError>
fn decode(buf: &mut impl Buf) -> Result<Self, PackError>
fn const_encoded_len() -> Option<usize>
fn decode_into(&mut self, buf: &mut impl Buf) -> Result<(), PackError>where
Self: Sized,
impl StructuralPartialEq for From
Auto Trait Implementations§
impl Freeze for From
impl RefUnwindSafe for From
impl Send for From
impl Sync for From
impl Unpin for From
impl UnwindSafe for From
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more