pub struct Trans2Req {
pub subcmd: u8,
pub params: Vec<u8>,
pub data: Vec<u8>,
pub param_base: usize,
pub data_base: usize,
pub unicode: bool,
}Expand description
Parsed TRANSACTION2 request envelope: subcommand plus fixed parameters and data sections.
Fields§
§subcmd: u8Subcommand byte from the start of the parameter buffer, or Setup[0].
params: Vec<u8>Fixed parameter words following the subcommand/pad.
data: Vec<u8>Data section contents (clamped to the frame).
param_base: usizeAbsolute frame offset of params[0] (parity reference).
data_base: usizeAbsolute frame offset of data[0].
unicode: boolUnicode strings requested by the client.
Implementations§
Source§impl Trans2Req
impl Trans2Req
Sourcepub fn parse(
_wct: u8,
words: &[u8],
buf: &[u8],
_bc_off_abs: usize,
unicode: bool,
) -> Option<Trans2Req>
pub fn parse( _wct: u8, words: &[u8], buf: &[u8], _bc_off_abs: usize, unicode: bool, ) -> Option<Trans2Req>
Parse the envelope from the request frame body.
Two client styles are supported:
- SetupCount=0 — subcommand is the first parameter-buffer byte, followed by one pad byte and the fixed words.
- SetupCount≥1 — the subcommand rides in
Setup[0]; the buffer holds only the fixed fields (Impacket style).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trans2Req
impl RefUnwindSafe for Trans2Req
impl Send for Trans2Req
impl Sync for Trans2Req
impl Unpin for Trans2Req
impl UnsafeUnpin for Trans2Req
impl UnwindSafe for Trans2Req
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