pub struct ReceiveAccept<'a> {
pub control: TransferControl,
pub max_block_size: u16,
pub length: Option<u64>,
pub metadata: &'a [u8],
}Expand description
A ReceiveAccept message (§11.22.5.3): the Responder will send a download.
The extra field over SendAccept is the one that matters: the Responder is the Sender
here, so it is the end that knows how big the file actually is.
Fields§
§control: TransferControlThe one transfer mode and version chosen.
max_block_size: u16The Max Block Size that will be used.
length: Option<u64>The length of the transfer, when the Sender knows it. None is indefinite.
metadata: &'a [u8]Optional application metadata, TLV.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ReceiveAccept<'a>
impl<'a> Clone for ReceiveAccept<'a>
impl<'a> Copy for ReceiveAccept<'a>
Source§impl<'a> Debug for ReceiveAccept<'a>
impl<'a> Debug for ReceiveAccept<'a>
impl<'a> Eq for ReceiveAccept<'a>
Source§impl<'a> PartialEq for ReceiveAccept<'a>
impl<'a> PartialEq for ReceiveAccept<'a>
impl<'a> StructuralPartialEq for ReceiveAccept<'a>
Auto Trait Implementations§
impl<'a> Forget for ReceiveAccept<'a>
impl<'a> Freeze for ReceiveAccept<'a>
impl<'a> Move for ReceiveAccept<'a>
impl<'a> RefUnwindSafe for ReceiveAccept<'a>
impl<'a> Send for ReceiveAccept<'a>
impl<'a> Sync for ReceiveAccept<'a>
impl<'a> Unpin for ReceiveAccept<'a>
impl<'a> UnsafeUnpin for ReceiveAccept<'a>
impl<'a> UnwindSafe for ReceiveAccept<'a>
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