Struct reactive_messaging::prelude::Peer
source · pub struct Peer<MessagesType: 'static + Send + Sync + PartialEq + Debug + ReactiveMessagingSerializer<MessagesType>> {
pub peer_id: u32,
pub sender: Arc<Atomic<'static, MessagesType, BUFFER_SIZE, 1>>,
pub peer_address: SocketAddr,
}Expand description
Represents a channel to a peer able to send out MessageType kinds of messages from “here” to “there”
Fields§
§peer_id: u32§sender: Arc<Atomic<'static, MessagesType, BUFFER_SIZE, 1>>§peer_address: SocketAddrImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<MessagesType> !RefUnwindSafe for Peer<MessagesType>
impl<MessagesType> Send for Peer<MessagesType>
impl<MessagesType> Sync for Peer<MessagesType>
impl<MessagesType> Unpin for Peer<MessagesType>
impl<MessagesType> !UnwindSafe for Peer<MessagesType>
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