pub struct BlockNegotiation {
pub address: Address,
pub blksize: u8,
pub crc_support: bool,
}Expand description
The blksize-carrying initiate frame: a download-initiate response or an upload-initiate request.
Fields§
§address: AddressThe object being transferred.
blksize: u8Segments allowed per sub-block before an acknowledgement (1..=127).
crc_support: boolWhether the sender supports the end-of-transfer CRC.
Trait Implementations§
Source§impl Clone for BlockNegotiation
impl Clone for BlockNegotiation
Source§fn clone(&self) -> BlockNegotiation
fn clone(&self) -> BlockNegotiation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockNegotiation
Source§impl Debug for BlockNegotiation
impl Debug for BlockNegotiation
impl Eq for BlockNegotiation
Source§impl PartialEq for BlockNegotiation
impl PartialEq for BlockNegotiation
impl StructuralPartialEq for BlockNegotiation
Auto Trait Implementations§
impl Freeze for BlockNegotiation
impl RefUnwindSafe for BlockNegotiation
impl Send for BlockNegotiation
impl Sync for BlockNegotiation
impl Unpin for BlockNegotiation
impl UnsafeUnpin for BlockNegotiation
impl UnwindSafe for BlockNegotiation
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