pub struct CreateContextResponse {
pub name: Vec<u8>,
pub data: CreateContextResponseData,
}Expand description
The common definition that wrap around all create contexts, for both request and response. Create contexts are used to pass additional information to the server or receive additional information from the server in the CREATE request and response.
This is meant to be used within a ChainedItemList<T>!
Reference: MS-SMB2 2.2.13, 2.2.14
Fields§
§name: Vec<u8>The name of the create context
data: CreateContextResponseDataThe data payload of the create context
Trait Implementations§
Source§impl BinRead for CreateContextResponse
impl BinRead for CreateContextResponse
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for CreateContextResponse
impl BinWrite for CreateContextResponse
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for CreateContextResponse
impl Debug for CreateContextResponse
Source§impl From<AppInstanceId> for CreateContextResponse
impl From<AppInstanceId> for CreateContextResponse
Source§fn from(req: AppInstanceId) -> Self
fn from(req: AppInstanceId) -> Self
Converts to this type from the input type.
Source§impl From<AppInstanceVersion> for CreateContextResponse
impl From<AppInstanceVersion> for CreateContextResponse
Source§fn from(req: AppInstanceVersion) -> Self
fn from(req: AppInstanceVersion) -> Self
Converts to this type from the input type.
Source§impl From<DH2QResp> for CreateContextResponse
impl From<DH2QResp> for CreateContextResponse
Source§impl From<DurableHandleResponse> for CreateContextResponse
impl From<DurableHandleResponse> for CreateContextResponse
Source§fn from(req: DurableHandleResponse) -> Self
fn from(req: DurableHandleResponse) -> Self
Converts to this type from the input type.
Source§impl From<QueryMaximalAccessResponse> for CreateContextResponse
impl From<QueryMaximalAccessResponse> for CreateContextResponse
Source§fn from(req: QueryMaximalAccessResponse) -> Self
fn from(req: QueryMaximalAccessResponse) -> Self
Converts to this type from the input type.
Source§impl From<QueryOnDiskIdResp> for CreateContextResponse
impl From<QueryOnDiskIdResp> for CreateContextResponse
Source§fn from(req: QueryOnDiskIdResp) -> Self
fn from(req: QueryOnDiskIdResp) -> Self
Converts to this type from the input type.
Source§impl From<RequestLease> for CreateContextResponse
impl From<RequestLease> for CreateContextResponse
Source§fn from(req: RequestLease) -> Self
fn from(req: RequestLease) -> Self
Converts to this type from the input type.
Source§impl From<SvhdxOpenDeviceContext> for CreateContextResponse
impl From<SvhdxOpenDeviceContext> for CreateContextResponse
Source§fn from(req: SvhdxOpenDeviceContext) -> Self
fn from(req: SvhdxOpenDeviceContext) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateContextResponse
impl PartialEq for CreateContextResponse
Source§impl TryInto<AppInstanceId> for CreateContextResponse
impl TryInto<AppInstanceId> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<AppInstanceId, SmbMsgError>
fn try_into(self) -> Result<AppInstanceId, SmbMsgError>
Performs the conversion.
Source§impl TryInto<AppInstanceVersion> for CreateContextResponse
impl TryInto<AppInstanceVersion> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<AppInstanceVersion, SmbMsgError>
fn try_into(self) -> Result<AppInstanceVersion, SmbMsgError>
Performs the conversion.
Source§impl TryInto<DH2QResp> for CreateContextResponse
impl TryInto<DH2QResp> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§impl TryInto<DurableHandleResponse> for CreateContextResponse
impl TryInto<DurableHandleResponse> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<DurableHandleResponse, SmbMsgError>
fn try_into(self) -> Result<DurableHandleResponse, SmbMsgError>
Performs the conversion.
Source§impl TryInto<QueryMaximalAccessResponse> for CreateContextResponse
impl TryInto<QueryMaximalAccessResponse> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<QueryMaximalAccessResponse, SmbMsgError>
fn try_into(self) -> Result<QueryMaximalAccessResponse, SmbMsgError>
Performs the conversion.
Source§impl TryInto<QueryOnDiskIdResp> for CreateContextResponse
impl TryInto<QueryOnDiskIdResp> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<QueryOnDiskIdResp, SmbMsgError>
fn try_into(self) -> Result<QueryOnDiskIdResp, SmbMsgError>
Performs the conversion.
Source§impl TryInto<RequestLease> for CreateContextResponse
impl TryInto<RequestLease> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<RequestLease, SmbMsgError>
fn try_into(self) -> Result<RequestLease, SmbMsgError>
Performs the conversion.
Source§impl TryInto<SvhdxOpenDeviceContext> for CreateContextResponse
impl TryInto<SvhdxOpenDeviceContext> for CreateContextResponse
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<SvhdxOpenDeviceContext, SmbMsgError>
fn try_into(self) -> Result<SvhdxOpenDeviceContext, SmbMsgError>
Performs the conversion.
impl Eq for CreateContextResponse
impl StructuralPartialEq for CreateContextResponse
Auto Trait Implementations§
impl Freeze for CreateContextResponse
impl RefUnwindSafe for CreateContextResponse
impl Send for CreateContextResponse
impl Sync for CreateContextResponse
impl Unpin for CreateContextResponse
impl UnwindSafe for CreateContextResponse
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