pub struct SessionSetupResponse {
pub session_flags: SessionFlags,
pub security_buffer: Vec<u8>,
}Expand description
SMB2 SESSION_SETUP response (spec section 2.2.6).
Sent by the server in response to a SESSION_SETUP request. Contains session flags and a security buffer with the server’s auth token.
Fields§
§session_flags: SessionFlagsFlags indicating additional information about the session.
security_buffer: Vec<u8>Security buffer containing the server’s authentication token.
Implementations§
Source§impl SessionSetupResponse
impl SessionSetupResponse
pub const STRUCTURE_SIZE: u16 = 9
Trait Implementations§
Source§impl Clone for SessionSetupResponse
impl Clone for SessionSetupResponse
Source§fn clone(&self) -> SessionSetupResponse
fn clone(&self) -> SessionSetupResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSetupResponse
impl Debug for SessionSetupResponse
Source§impl Pack for SessionSetupResponse
impl Pack for SessionSetupResponse
Source§fn pack(&self, cursor: &mut WriteCursor)
fn pack(&self, cursor: &mut WriteCursor)
Write this value into the cursor.
Source§impl PartialEq for SessionSetupResponse
impl PartialEq for SessionSetupResponse
Source§fn eq(&self, other: &SessionSetupResponse) -> bool
fn eq(&self, other: &SessionSetupResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Unpack for SessionSetupResponse
impl Unpack for SessionSetupResponse
Source§fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
Read a value from the cursor, advancing its position.
impl Eq for SessionSetupResponse
impl StructuralPartialEq for SessionSetupResponse
Auto Trait Implementations§
impl Freeze for SessionSetupResponse
impl RefUnwindSafe for SessionSetupResponse
impl Send for SessionSetupResponse
impl Sync for SessionSetupResponse
impl Unpin for SessionSetupResponse
impl UnsafeUnpin for SessionSetupResponse
impl UnwindSafe for SessionSetupResponse
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