pub struct TransferId(pub u16);
Tuple Fields§
§0: u16
Implementations§
Source§impl TransferId
impl TransferId
Sourcepub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
pub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
§Errors
This function will return an io::Error
if there is an issue with writing to the stream.
This could happen if the stream is closed or if there are underlying I/O errors during the write operation.
Sourcepub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
pub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
§Errors
This function will return an io::Error
if there is an issue with writing to the stream.
This could happen if the stream is closed or if there are underlying I/O errors during the write operation.
Trait Implementations§
Source§impl Clone for TransferId
impl Clone for TransferId
Source§fn clone(&self) -> TransferId
fn clone(&self) -> TransferId
Returns a copy 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 moreSource§impl Debug for TransferId
impl Debug for TransferId
Source§impl PartialEq for TransferId
impl PartialEq for TransferId
impl Copy for TransferId
impl Eq for TransferId
impl StructuralPartialEq for TransferId
Auto Trait Implementations§
impl Freeze for TransferId
impl RefUnwindSafe for TransferId
impl Send for TransferId
impl Sync for TransferId
impl Unpin for TransferId
impl UnwindSafe for TransferId
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