pub struct EndPoint { /* private fields */ }Implementations§
Source§impl EndPoint
impl EndPoint
Sourcepub async fn recv_from(&self) -> Result<(RecvUserData, RecvMetadata)>
pub async fn recv_from(&self) -> Result<(RecvUserData, RecvMetadata)>
Recv remote data from this endpoint
Sourcepub async fn send_to<D: Into<NodeID>>(&self, buf: &[u8], dest: D) -> Result<()>
pub async fn send_to<D: Into<NodeID>>(&self, buf: &[u8], dest: D) -> Result<()>
Send data to remote endpoint
pub fn try_recv_from(&self) -> Result<(RecvUserData, RecvMetadata)>
pub fn try_send_to<D: Into<NodeID>>(&self, buf: &[u8], dest: D) -> Result<()>
pub async fn send_to_route<D: Into<NodeID>>( &self, buf: &[u8], dest: D, route_key: &RouteKey, ) -> Result<()>
pub async fn try_send_to_route<D: Into<NodeID>>( &self, buf: &[u8], dest: D, route_key: &RouteKey, ) -> Result<()>
pub async fn broadcast(&self, buf: &[u8]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EndPoint
impl !RefUnwindSafe for EndPoint
impl Send for EndPoint
impl Sync for EndPoint
impl Unpin for EndPoint
impl !UnwindSafe for EndPoint
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