pub enum HeaderTail {
Sync {
reserved: u32,
tree_id: u32,
},
Async {
async_id: u64,
},
}Expand description
The 8 bytes of the header that differ between sync and async forms.
The discriminant is flags & SMB2_FLAGS_ASYNC_COMMAND.
Smb2Header::parse and Smb2Header::write convert it to and from the
raw bytes.
Variants§
Sync
Sync form: Reserved (u32) + TreeId (u32) at bytes 0x20..0x28.
Async
Async form: AsyncId (u64) at bytes 0x20..0x28.
Implementations§
Trait Implementations§
Source§impl Clone for HeaderTail
impl Clone for HeaderTail
impl Copy for HeaderTail
Source§impl Debug for HeaderTail
impl Debug for HeaderTail
impl Eq for HeaderTail
Source§impl PartialEq for HeaderTail
impl PartialEq for HeaderTail
impl StructuralPartialEq for HeaderTail
Auto Trait Implementations§
impl Forget for HeaderTail
impl Freeze for HeaderTail
impl Move for HeaderTail
impl RefUnwindSafe for HeaderTail
impl Send for HeaderTail
impl Sync for HeaderTail
impl Unpin for HeaderTail
impl UnsafeUnpin for HeaderTail
impl UnwindSafe for HeaderTail
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