pub struct TransformHdr {
pub original_len: usize,
pub session_id: u64,
pub flags: u16,
}Expand description
Parsed transform header ([MS-SMB2] §2.2.41).
Fields§
§original_len: usizeOriginalMessageSize — length of the plaintext SMB2 message.
session_id: u64SessionId the message belongs to.
flags: u16Flags word (ENCRYPTED bit).
Implementations§
Source§impl TransformHdr
impl TransformHdr
Sourcepub fn parse(frame: &[u8]) -> Option<TransformHdr>
pub fn parse(frame: &[u8]) -> Option<TransformHdr>
Parse the 52-byte header from the start of frame; verifies magic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransformHdr
impl RefUnwindSafe for TransformHdr
impl Send for TransformHdr
impl Sync for TransformHdr
impl Unpin for TransformHdr
impl UnsafeUnpin for TransformHdr
impl UnwindSafe for TransformHdr
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