pub struct WriteConnection { /* private fields */ }
Implementations§
Source§impl WriteConnection
impl WriteConnection
pub fn new(write: OwnedWriteHalf) -> Self
pub async fn write<P: IdentifierPacket>(&self, packet: P) -> Result<()>
Trait Implementations§
Source§impl Clone for WriteConnection
impl Clone for WriteConnection
Source§fn clone(&self) -> WriteConnection
fn clone(&self) -> WriteConnection
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 moreAuto Trait Implementations§
impl Freeze for WriteConnection
impl !RefUnwindSafe for WriteConnection
impl Send for WriteConnection
impl Sync for WriteConnection
impl Unpin for WriteConnection
impl !UnwindSafe for WriteConnection
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