[−][src]Struct netidx::publisher::Val
This represents a published value. Internally it is wrapped in an Arc, so cloning it is free. When all references to a given published value have been dropped it will be unpublished. However you must call flush before references to it will be removed from the resolver server.
Implementations
impl Val
[src]
pub fn downgrade(&self) -> ValWeak
[src]
pub fn update(&self, v: Value)
[src]
Queue an update to the published value, it will not be sent
out until you call flush
on the publisher, however new
subscribers will receive the last value passed to update when
they subscribe regardless of flush. Multiple updates can be
queued before flush is called, in which case on flush
subscribers will receive all the queued values in order. If
updates are queued on multiple different published values
before flush
is called, they will all be sent out as a batch
and are guarenteed to arrive in the order update
was called.
pub fn writes(&self, tx: Sender<Batch>)
[src]
Register tx
to receive writes. You can register multiple
channels, and you can register the same channel on multiple
Val
objects. If no channels are registered to receive writes
they will be ignored.
pub fn id(&self) -> Id
[src]
Get the unique Id
of this Val
pub fn path(&self) -> &Path
[src]
Get a reference to the Path
of this published value.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Val
impl Send for Val
impl Sync for Val
impl Unpin for Val
impl !UnwindSafe for Val
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,