pub struct ErrorResponse {
pub error_context_count: u8,
pub error_data: Vec<u8>,
}Expand description
SMB2 ERROR Response body (spec section 2.2.2).
Sent by the server when a request fails. The structure is:
- StructureSize (2 bytes, must be 9)
- ErrorContextCount (1 byte)
- Reserved (1 byte)
- ByteCount (4 bytes)
- ErrorData (variable, ByteCount bytes)
Fields§
§error_context_count: u8Number of error contexts (SMB 3.1.1 only, otherwise 0).
error_data: Vec<u8>Variable-length error data.
Implementations§
Source§impl ErrorResponse
impl ErrorResponse
pub const STRUCTURE_SIZE: u16 = 9
Trait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§fn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
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 ErrorResponse
impl Debug for ErrorResponse
Source§impl Pack for ErrorResponse
impl Pack for ErrorResponse
Source§fn pack(&self, cursor: &mut WriteCursor)
fn pack(&self, cursor: &mut WriteCursor)
Write this value into the cursor.
Source§impl PartialEq for ErrorResponse
impl PartialEq for ErrorResponse
Source§fn eq(&self, other: &ErrorResponse) -> bool
fn eq(&self, other: &ErrorResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Unpack for ErrorResponse
impl Unpack for ErrorResponse
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 ErrorResponse
impl StructuralPartialEq for ErrorResponse
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnsafeUnpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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