pub struct Chunk {
pub offset: u64,
pub bytes: Bytes,
}展开描述
来自接收流的一块数据
字段§
§offset: u64在流中的偏移量
bytes: Bytes该数据块的内容
trait 实现§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
自动 trait 实现§
impl !Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息