pub struct Node<T>where
T: Serialize + DeserializeOwned + 'static,{
pub id: u32,
pub election_timeout_ms: u32,
pub heartbeat_timeout_ms: u32,
/* private fields */
}
Fields§
§id: u32
§election_timeout_ms: u32
§heartbeat_timeout_ms: u32
Implementations§
Source§impl<T> Node<T>where
T: Serialize + DeserializeOwned + 'static,
impl<T> Node<T>where
T: Serialize + DeserializeOwned + 'static,
Source§impl<T> Node<T>where
T: Serialize + DeserializeOwned + 'static,
impl<T> Node<T>where
T: Serialize + DeserializeOwned + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Node<T>
impl<T> !RefUnwindSafe for Node<T>
impl<T> !Send for Node<T>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>
impl<T> !UnwindSafe for Node<T>
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