pub struct NetworkChangeEvent { /* private fields */ }Available on crate feature
listen only.Expand description
Notification sent by the server when changes were made.
Implementations§
Source§impl NetworkChangeEvent
impl NetworkChangeEvent
Sourcepub fn new(
account_id: &AccountId,
connection_id: String,
root: CommitHash,
outcome: MergeOutcome,
) -> Self
pub fn new( account_id: &AccountId, connection_id: String, root: CommitHash, outcome: MergeOutcome, ) -> Self
Create a new change notification.
Sourcepub fn account_id(&self) -> &AccountId
pub fn account_id(&self) -> &AccountId
AccountId of the account owner.
Sourcepub fn connection_id(&self) -> &str
pub fn connection_id(&self) -> &str
Connection identifier.
Sourcepub fn root(&self) -> &CommitHash
pub fn root(&self) -> &CommitHash
Account root commit hash.
Sourcepub fn outcome(&self) -> &MergeOutcome
pub fn outcome(&self) -> &MergeOutcome
Merge outcome.
Trait Implementations§
Source§impl Clone for NetworkChangeEvent
impl Clone for NetworkChangeEvent
Source§fn clone(&self) -> NetworkChangeEvent
fn clone(&self) -> NetworkChangeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkChangeEvent
impl Debug for NetworkChangeEvent
Source§impl From<NetworkChangeEvent> for (AccountId, String, CommitHash, MergeOutcome)
impl From<NetworkChangeEvent> for (AccountId, String, CommitHash, MergeOutcome)
Source§fn from(value: NetworkChangeEvent) -> Self
fn from(value: NetworkChangeEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetworkChangeEvent
impl PartialEq for NetworkChangeEvent
impl Eq for NetworkChangeEvent
impl StructuralPartialEq for NetworkChangeEvent
Auto Trait Implementations§
impl Freeze for NetworkChangeEvent
impl RefUnwindSafe for NetworkChangeEvent
impl Send for NetworkChangeEvent
impl Sync for NetworkChangeEvent
impl Unpin for NetworkChangeEvent
impl UnwindSafe for NetworkChangeEvent
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,
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.