pub enum HeaderTail {
Sync {
reserved: u32,
tree_id: u32,
},
Async {
async_id: u64,
},
}Expand description
The 12-byte tail of the header that differs between sync and async forms.
The discriminant is flags & SMB2_FLAGS_ASYNC_COMMAND. We can’t easily use
binrw’s args+if without making the parent struct generic over the runtime
flag value, so the parent reads/writes this manually via parse / write
helpers and we expose a regular Rust enum here.
Variants§
Sync
Sync form: Reserved (u32) + TreeId (u32) at bytes 0x24..0x2C.
(See note in module docs about offsets.)
Async
Async form: AsyncId (u64) at bytes 0x24..0x2C.
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 Freeze 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