pub enum To {
Subscribe {
path: Path,
resolver: SocketAddr,
timestamp: u64,
permissions: u32,
token: Bytes,
},
Unsubscribe(Id),
Write(Id, bool, Value, WriteId),
}Variants§
Subscribe
Subscribe to the specified value, if it is not available the result will be NoSuchValue. The optional security token is a proof from the resolver server that this subscription is permitted. In the case of an anonymous connection this proof will be empty.
Unsubscribe(Id)
Unsubscribe from the specified value, this will always result in an Unsubscribed message even if you weren’t ever subscribed to the value, or it doesn’t exist.
Write(Id, bool, Value, WriteId)
Send a write to the specified value.
Trait Implementations§
Source§impl Pack for To
impl Pack for To
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 To
Auto Trait Implementations§
impl !Freeze for To
impl RefUnwindSafe for To
impl Send for To
impl Sync for To
impl Unpin for To
impl UnwindSafe for To
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