pub struct WatchState { /* private fields */ }Implementations§
Source§impl WatchState
impl WatchState
pub fn new(source: Endpoint, target: Endpoint) -> Self
pub const fn origin_id(&self) -> Uuid
pub fn source(&self) -> &Endpoint
pub fn target(&self) -> &Endpoint
pub fn decide(&self, hash: &str, incoming_origin: Option<Uuid>) -> WatchDecision
pub fn record_applied(&mut self, hash: impl Into<String>)
Trait Implementations§
Source§impl Clone for WatchState
impl Clone for WatchState
Source§impl Debug for WatchState
impl Debug for WatchState
Source§impl<'de> Deserialize<'de> for WatchState
impl<'de> Deserialize<'de> for WatchState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WatchState
Source§impl PartialEq for WatchState
impl PartialEq for WatchState
Source§impl Serialize for WatchState
impl Serialize for WatchState
impl StructuralPartialEq for WatchState
Auto Trait Implementations§
impl Freeze for WatchState
impl RefUnwindSafe for WatchState
impl Send for WatchState
impl Sync for WatchState
impl Unpin for WatchState
impl UnsafeUnpin for WatchState
impl UnwindSafe for WatchState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.