pub struct Relay { /* private fields */ }Implementations§
Source§impl Relay
impl Relay
pub fn max_datagram_size(&self) -> usize
pub fn send_buffer_space(&self) -> usize
pub fn send_buffer_queued(&self) -> usize
pub fn send_datagram(&self, payload: Bytes) -> Result<(), SendError>
pub fn stats(&self) -> PathStats
pub fn close(&self, reason: &str)
pub async fn closed(&self)
Auto Trait Implementations§
impl !Freeze for Relay
impl RefUnwindSafe for Relay
impl Send for Relay
impl Sync for Relay
impl Unpin for Relay
impl UnsafeUnpin for Relay
impl UnwindSafe for Relay
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